Log time needed for process
Posted on 2000-04-14
Using Borland cpp Builder 4.x
I want to log the time needed for a certain process.
I tried :
SYSTEMTIME 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.
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.