Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Compute Hours, Minutes, Seconds from SECONDS()
Message
De
07/09/1999 14:17:17
 
 
À
03/09/1999 17:30:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00261364
Message ID:
00262073
Vues:
17
>>Anybody have a technique for measuring the amount of time it takes a function to process?
>>
>>I tried the following ... but that give me total seconds and I need the that result converted to hours:minutes:seconds.
>>
>>Other Suggestions? Ideas?
>>
>>nStart = Seconds()
>>.
>>(my code)
>>.
>>
>>nStop = Seconds()
>>
>>nRunTime = nStop-nStart
>>
>>How to get nRunTime to look like HH:MM:SS??
>>
>>Help?
>>
>>Please and thanks.
>
>
>? TTOC(DTOT(DATE())+nRunTime,2)

Are you SURE you used the 2 parameter at the end? If you didn't, you'd only get a datetime. The 2 tells it to return only the time portion.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform