A.I.M.S


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

aims::Clock::Clock ( )

Constructor does a reset of _clock.

Member Function Documentation

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.

Friends And Related Function Documentation

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

Output stream.


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