AcquireTimerInfoContinueTimerDestroyTimerInfoGetElapsedTimeGetUserTimeResetTimer

AcquireTimerInfo

AcquireTimerInfo() initializes the TimerInfo structure. It effectively creates a stopwatch and starts it.

The format of the AcquireTimerInfo method is:

TimerInfo *AcquireTimerInfo(void)

ContinueTimer

ContinueTimer() resumes a stopped stopwatch. The stopwatch continues counting from the last StartTimer() onwards.

The format of the ContinueTimer method is:

WizardBooleanType ContinueTimer(TimerInfo *timer_info)

A description of each parameter follows.

timer_info

Time statistics structure.

DestroyTimerInfo

DestroyTimerInfo() zeros memory associated with the TimerInfo structure.

The format of the DestroyTimerInfo method is:

TimerInfo *DestroyTimerInfo(TimerInfo *timer_info)

A description of each parameter follows:

timer_info
The cipher context.

GetElapsedTime

GetElapsedTime() returns the elapsed time (in seconds) passed between the start and stop events. If the stopwatch is still running, it is stopped first.

The format of the GetElapsedTime method is:

double GetElapsedTime(TimerInfo *timer_info)

A description of each parameter follows.

timer_info

Timer statistics structure.

GetUserTime

GetUserTime() returns the User time (user and system) by the operating system (in seconds) between the start and stop events. If the stopwatch is still running, it is stopped first.

The format of the GetUserTime method is:

double GetUserTime(TimerInfo *timer_info)

A description of each parameter follows.

timer_info

Timer statistics structure.

ResetTimer

ResetTimer() resets the stopwatch.

The format of the ResetTimer method is:

void ResetTimer(TimerInfo *timer_info)

A description of each parameter follows.

timer_info

Timer statistics structure.