Link to home
Start Free TrialLog in
Avatar of sneeuw
sneeuwFlag for Belgium

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
Avatar of sneeuw
sneeuw
Flag of Belgium image

ASKER

typo :
consoming = consuming
;-)
ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sneeuw

ASKER

Seems to work OK.
Thanks !

sneeuw