Class Timer

Class Documentation

class Timer

Utility class for time measurement

By performing a pause, the integration time of only the necessary parts is measured.

Public Functions

Timer()

Constructor

void reset()

Reset time measurement

The accumulated time is set to 0, and the staring time of measurement is set to 0.

double elapsed()

Obtain elapsed time. Units are returned in seconds. When the time is accumulated using the pause, the value including the accumulated time is returned.

Return

Elapsed time. Unit is seconds.

void temporal_stop()

Pause timer

Pause the timer and add the elapsed time to the current time.

void temporal_resume()

Restart timer

Restart the timer and set the starting point for the new time measurement.