See the code at:
http://www.learnasp.com/learn/speedtimer.asp
I use this to time page compeletion(with ASP stuff)
Similar to google: it took x msec to prcess this search.
...PC
--- "Angela H." <[EMAIL PROTECTED]> wrote:
>
>
> You know, I get the same time before the function starts working and
> after.I think it's because the computer only loads up the page after
> it's done all the work in its memory.
>
> That's way I was wandering is there another way, or am I missing
> something.
> It's very strange because I found a solution for this problem by
> having one page open another page, but I wrote a counter in the
> status bar of the first pagea and I counted the seconds it took to
> load the function.
>
> The reason I'm not too happy about this solution is that it's not
> exact. It's approximate, because I had to watch the page load and
> when I saw it load, I wrote down the number of seconds. Sometimes, I
> wasn't sure if it was 5 seconds or 6 seconds. But I was thinking
> that this problem can be solved by getting the time in milliseconds.
>
> Do you know how to do that? Get the time in MILLISECONDS?
> THANKS FOR YOUR HELP!
> Angie
>
>
> Dan Powderhill <[EMAIL PROTECTED]> wrote:
> Not sure about javascript (sorry - too rusty with my JS nowadays),
> but
> in VBScript you could do something like this :-
>
> Function fnMyFunction()
>
> Dim dStartTime, dEndTime
>
> dStartTime = Now()
>
> 'rest of your function
> ...
>
> dEndTime = Now()
>
> response.write "Time taken : " & dateDiff("s", dStartTime,
> dEndTime)
>
> end function
>
> Dan
>
> -----Original Message-----
> From: roughraver1000 [mailto:[EMAIL PROTECTED]
> Sent: 03 November 2004 17:05
> To: [EMAIL PROTECTED]
> Subject: [ASP] TIMER in ASP and JAVASCRIPT
>
>
>
>
> Hi Everyone! I'm new to this chat, so I wanted to say HELLO!
> Also, can anyone help me code a timer which times how long a
> function takes to run. I need to have a time at the beging before
> the function's runing and then a time after, to see how long it's
> taking it to run. But I have to do it in JavaScript in ASP. Any
> ideas?
> Email me at [EMAIL PROTECTED]
>
> Thanks!
> Angie
__________________________________
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~->
---------------------------------------------------------------------
Home : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post : [EMAIL PROTECTED]
Subscribe : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/active-server-pages/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/