|
libmoost
|
#include <stopwatch.hpp>


Public Types | |
| enum | granularity { nanosecs, microsecs, millisecs, secs } |
| typedef stopwatch::elapsed_t | elapsed_t |
Public Member Functions | |
| scoped_stopwatch (elapsed_t &future, granularity const g=microsecs, bool const a=false) | |
| ~scoped_stopwatch () | |
Private Attributes | |
| stopwatch | sw_ |
| elapsed_t & | future_ |
| granularity const | granularity_ |
| bool const | accumulate_ |
A scoped stop watch that will return the elapsed time in a future variable.
Definition at line 101 of file stopwatch.hpp.
Definition at line 109 of file stopwatch.hpp.
Definition at line 104 of file stopwatch.hpp.
| moost::utils::scoped_stopwatch::scoped_stopwatch | ( | elapsed_t & | future, |
| granularity const | g = microsecs, |
||
| bool const | a = false |
||
| ) | [inline] |
Definition at line 111 of file stopwatch.hpp.
| moost::utils::scoped_stopwatch::~scoped_stopwatch | ( | ) | [inline] |
bool const moost::utils::scoped_stopwatch::accumulate_ [private] |
Definition at line 150 of file stopwatch.hpp.
elapsed_t& moost::utils::scoped_stopwatch::future_ [private] |
Definition at line 148 of file stopwatch.hpp.
granularity const moost::utils::scoped_stopwatch::granularity_ [private] |
Definition at line 149 of file stopwatch.hpp.
stopwatch moost::utils::scoped_stopwatch::sw_ [private] |
Definition at line 147 of file stopwatch.hpp.