Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can we calculate processing time ?
Message
From
06/01/1999 06:13:05
 
 
To
06/01/1999 02:02:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00173030
Message ID:
00173061
Views:
23
>I would like to calculate processing time, which command can
>we use ? Thanks for your time

Do you mean that you want to compue how long it took to run a particular piece of code? That's pretty simple; you can record the date/time at the start of processing in a variable, and then subtract that from the date/time at termination to get the run time in seconds:

LOCAL tStartTime, nDurationInSeconds
tStartTime = DATETIME()
* Do whatever you want to do here
nDurationInSeconds = DATETIME() - tStartTime
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