Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can we calculate processing time ?
Message
De
06/01/1999 06:13:05
 
 
À
06/01/1999 02:02:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00173030
Message ID:
00173061
Vues:
24
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform