sneeuw
asked on
Log time needed for process
Hi,
Using Borland cpp Builder 4.x
I want to log the time needed for a certain process.
I tried :
SYSTEMTIME Time ;
GetSystemTime(&Time) ;
DWORD Seconds = (Time.wSecond + (Time.wMinute * 60) + (Time.wHour * 60 * 60))
Further down the code, after the process is finished I do this again and see what the difference is.
The question.
Is there an alternative and maybe faster way ??
Faster in the sense : more accurate ?
Is the above mentioned method effecient enough or is it system dependant and time consoming to get that time ??
Input is welcome.
sneeuw
Using Borland cpp Builder 4.x
I want to log the time needed for a certain process.
I tried :
SYSTEMTIME Time ;
GetSystemTime(&Time) ;
DWORD Seconds = (Time.wSecond + (Time.wMinute * 60) + (Time.wHour * 60 * 60))
Further down the code, after the process is finished I do this again and see what the difference is.
The question.
Is there an alternative and maybe faster way ??
Faster in the sense : more accurate ?
Is the above mentioned method effecient enough or is it system dependant and time consoming to get that time ??
Input is welcome.
sneeuw
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Seems to work OK.
Thanks !
sneeuw
Thanks !
sneeuw
ASKER
consoming = consuming
;-)