![]() |
aimsdata
4.7.0
Neuroimaging data handling
|
The basic time tool. More...
#include <aims/utility/clock.h>
Public Member Functions | |
Clock () | |
Constructor does a reset of _clock. More... | |
void | reset () |
Reset the _clock variable to actual time. More... | |
clock_t | initialTime () const |
Return initial time. More... | |
clock_t | laps () const |
Return time elapsed from last reset. More... | |
clock_t | lapsAndReset () |
Return time elapsed from last reset and reset _clock variable. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Clock &thing) |
Output stream. More... | |
The basic time tool.
This object can be used as a chronometer to evaluate times in a program.
aims::Clock::Clock | ( | ) |
Constructor does a reset of _clock.
clock_t aims::Clock::initialTime | ( | ) | const |
Return initial time.
clock_t aims::Clock::laps | ( | ) | const |
Return time elapsed from last reset.
clock_t aims::Clock::lapsAndReset | ( | ) |
Return time elapsed from last reset and reset _clock variable.
void aims::Clock::reset | ( | ) |
Reset the _clock variable to actual time.
|
friend |
Output stream.