Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Compute Hours, Minutes, Seconds from SECONDS()
Message
From
03/09/1999 17:31:10
 
 
To
03/09/1999 16:28:33
Ernie Veniegas
Micro System Solutions, Inc.
Calistoga, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00261364
Message ID:
00261406
Views:
20
>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.

nSeconds = 126
nHours = INT(nSeconds/3600)
nMinutes = INT(MOD(nSeconds,3600)/60)
nSeconds = MOD(nSeconds,60)
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform