Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I Calculate a Time interval?
Message
From
02/02/2000 19:54:23
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00326363
Message ID:
00326512
Views:
25
>>I need to know how many Milliseconds takes some operations between scan and endscan
>
>Use the seconds() function it gives resolution in milliseconds. See VFP help for some tips. Note: it is the number of seconds since midnight, so you will need some code to compensate for the rollover.

If you really need millisecond resolution, the internal time really is not accurate; under NT, it is never better than 1/100th of a second, and the unit of execution with more than one thing running (and there's always more than 1 thing running) is significantly longer than 1 ms, so other tasks may reduce the accuracy of measure. You're better off to run several thousand or million iterations, get a total duration and then divide by the iteration count.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform