|
Thrill
0.1
|
Class fake_timer is a drop-in replacement for timer, which does nothing.
Using the fake class, timers can quickly be disabled in release builds, but still be available for debugging session.
#include <timer.hpp>
Public Member Functions | |
| fake_timer (bool=false) | |
| initialize and optionally immediately start the timer More... | |
| double | mseconds () const |
| return currently accumulated time in milliseconds More... | |
| fake_timer & | operator+= (const fake_timer &) |
| accumulate elapsed time from another timer More... | |
| void | reset () |
| return accumulated time More... | |
| double | seconds () const |
| return currently accumulated time in seconds (as double) More... | |
| void | start () |
| start timer More... | |
| void | stop () |
| stop timer More... | |
| double | useconds () const |
| return currently accumulated time in microseconds More... | |
Static Public Attributes | |
| static const bool | is_real = false |
| boolean indicating that this class does NOT do real timing More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const fake_timer &t) |
| direct <<-operator for ostream. Can be used for printing with std::cout. More... | |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
static |