Hex  1.0
Hydrogen-electron collision solver
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions
Timer Class Reference

Timing class. More...

#include <misc.h>

Public Member Functions

 Timer ()
 Return object reference (singleton interface). More...
 
void reset ()
 Start timer. More...
 
unsigned seconds ()
 Return elapsed time in seconds. More...
 
unsigned milliseconds ()
 Return elapsed time in milliseconds. More...
 
unsigned microseconds ()
 Return elapsed time in microseconds. More...
 

Detailed Description

The Timer class can be used for a comfortable computation of elapsed time. The usage would be:

Timer timer;
// .. block ...
std:cout << "Time = " << timer.seconds() << "secs.\n";

Constructor & Destructor Documentation

Timer::Timer ( )
inline

Member Function Documentation

unsigned Timer::microseconds ( )
inline
unsigned Timer::milliseconds ( )
inline
void Timer::reset ( )
inline
unsigned Timer::seconds ( )
inline

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