|
-
October 11th, 1999, 02:43 AM
#1
Milliseconds display
Could someone enlighten me please.
I am trying to write a routine which will make a note of how long a query takes to run. My problem is that I cannot find any reference to reading the current time including milliseconds.
e.g. 3:34:18.245
All the date/time functions only seem to go down to seconds. I have played around with the timer function but I can't believe there isn't a better way.
Thanks.
-
October 11th, 1999, 02:47 AM
#2
Re: Milliseconds display
the GetSystemTime API fills a SYSTEMTIME structure that has a Milliseconds field.
-
October 11th, 1999, 02:48 AM
#3
Re: Milliseconds display
Try API function : GetTickCount
-
October 11th, 1999, 02:48 AM
#4
Re: Milliseconds display
You can also use the Timer function, eg.
Dim start as double
start = Timer
' do what you want
Msgbox Timer - start
Crazy D @ Work :-)
-
October 11th, 1999, 03:06 AM
#5
Re: Milliseconds display
AFAIK Timer does not return Milliseconds. Am I wrong?
-
October 11th, 1999, 03:10 AM
#6
Re: Milliseconds display
Oopsie guess it's too early to think...
In reply to:
Timer Function
Returns a Single representing the number of seconds elapsed since midnight.
Syntax
Timer
Remarks
In Microsoft Windows the Timer function returns fractional portions of a second.
I understood it was to see how long a query takes to execute, I always use Timer for that... but I you're right...
Crazy D @ Work :-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|