Octane v1.01.20 - The Open Compression Toolkit for C++ | http://octane.sourceforge.net/ |
#include <scope_timer.hpp>
Definition at line 27 of file scope_timer.hpp.
Public Member Functions | |
OctaneScopeTimer (const std::string _pre="< scope_timer >", const std::string _post="seconds\n", std::ostream &_to=std::cout) | |
Constructor. | |
float | get_elapsed () |
Get the elapsed time since construction. | |
~OctaneScopeTimer () | |
Destructor. |
|
Constructor.
Definition at line 34 of file scope_timer.hpp.
00037 : pre(_pre), post(_post), to(_to) 00038 { ; } |
|
Destructor. Outputs the elapsed time along with the pre- and post messages. Definition at line 46 of file scope_timer.hpp. References OctaneTimer::stop().
00046 { to << pre << t.stop() << post; } |
|
Get the elapsed time since construction.
Definition at line 42 of file scope_timer.hpp. References OctaneTimer::stop().
00042 { return t.stop(); } |