clang-tags
C/C++ source code indexing tool based on libclang
 All Classes Functions Variables Typedefs Groups Pages
Public Member Functions | List of all members
Timer Class Reference

Wall-clock timer. More...

#include <util.hxx>

Public Member Functions

 Timer ()
 Constructor.
double get ()
 Get elapsed (wall-clock) time.
void reset ()
 Reset timer.

Detailed Description

Wall-clock timer.

Example use:

Constructor & Destructor Documentation

Timer::Timer ( )
inline

Constructor.

Create a new timer and start counting.

Member Function Documentation

double Timer::get ( )
inline

Get elapsed (wall-clock) time.

Time is counted since the timer creation or last reset().

Returns
elapsed time, in seconds
void Timer::reset ( )
inline

Reset timer.

Start counting time from the current instant on.


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