timer

1. Member
Join Date
Dec 1969
Posts
30

## timer

Can anybody tell me what does timer in asp return<BR>thanx

2. Senior Member
Join Date
Dec 1969
Posts
614

.

3. akram Guest

## RE: timer

timer is as it means : it is running timer <BR><BR>for ex try this :<BR><BR>response.write timer<BR>do some code <BR>response.write timer <BR><BR>you would see that the values are differnt and the time advanced

4. Senior Member
Join Date
Dec 1969
Posts
110

## RE: timer

Explanation with example<BR><BR>&#060;body&#062;<BR>&#060;% myStart = timer %&#062;<BR>&#060;b&#062;Start: &#060;%= myStart%&#062;&#060;/b&#062;<BR>&#060;br/&#062;<BR>&#060;% For x = 1 to 1000 <BR> &#039;put some code here to time it<BR> Next<BR> myEnd = timer<BR>%&#062;<BR>&#060;b&#062;End: &#060;%=myEnd%&#062;&#060;/b&#062;<BR>&#060;br/&#062;<BR>&#060;b&#062;Ellapsed Time: &#060;%= myEnd - myStart %&#062; (seconds)&#060;/b&#062;<BR>&#060;/body&#062;<BR><BR>

5. Senior Member
Join Date
Dec 1969
Posts
614

## http://msdn.microsoft.com/scripting/default.htm?/s

Returns the number of seconds that have elapsed since 12:00 AM (midnight).<BR><BR>Timer<BR><BR>Remarks<BR>The following example uses the Timer function to determine the time it takes to iterate a For...Next loop N times: <BR><BR>Function TimeIt(N)<BR> Dim StartTime, EndTime<BR> StartTime = Timer<BR> For I = 1 To N<BR> Next<BR> EndTime = Timer<BR> TimeIt = EndTime - StartTime<BR>End Function <BR>

6. Member
Join Date
Dec 1969
Posts
30

Thanx

7. P.S. Guest

## RE: Number of Seconds since midnight <eop

Hey ShropShire <BR>What does &#060;eop&#062; mean???

8. P.S. Guest

## RE: What does <eop> mean???

Hey ShropShire <BR>What does &#060;eop&#062; mean???

9. Senior Member
Join Date
Dec 1969
Posts
614

## End Of Post

It basically means that the Reponse Title contains all of the message, so you do not need to open it.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•