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
---------------------------------------------------------------------
Home : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post : [EMAIL PROTECTED]
Subscribe : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links
------------------------ 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/