clang-tags
C/C++ source code indexing tool based on libclang
|
Wall-clock timer. More...
#include <util.hxx>
Public Member Functions | |
Timer () | |
Constructor. | |
double | get () |
Get elapsed (wall-clock) time. | |
void | reset () |
Reset timer. |
Wall-clock timer.
Example use:
|
inline |
Constructor.
Create a new timer and start counting.
|
inline |
Get elapsed (wall-clock) time.
Time is counted since the timer creation or last reset().
|
inline |
Reset timer.
Start counting time from the current instant on.