aimsdata  5.0.5
Neuroimaging data handling
aims::Clock Class Reference

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...
 

Detailed Description

The basic time tool.

This object can be used as a chronometer to evaluate times in a program.

Definition at line 53 of file clock.h.

Constructor & Destructor Documentation

◆ Clock()

aims::Clock::Clock ( )

Constructor does a reset of _clock.

Member Function Documentation

◆ initialTime()

clock_t aims::Clock::initialTime ( ) const

Return initial time.

◆ laps()

clock_t aims::Clock::laps ( ) const

Return time elapsed from last reset.

◆ lapsAndReset()

clock_t aims::Clock::lapsAndReset ( )

Return time elapsed from last reset and reset _clock variable.

◆ reset()

void aims::Clock::reset ( )

Reset the _clock variable to actual time.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const Clock thing 
)
friend

Output stream.


The documentation for this class was generated from the following file: