|
Thrill
0.1
|
Simple scoped timer, which takes a text message and prints the duration until the scope is destroyed.
Collaboration diagram for scoped_print_timer:#include <timer.hpp>
Public Member Functions | |
| scoped_print_timer (const std::string &message, const uint64_t bytes=0) | |
| save message and start timer More... | |
| ~scoped_print_timer () | |
| on destruction: tell the time More... | |
| const foxxll::timer & | timer () const |
| constant access to enclosed timer More... | |
Protected Attributes | |
| uint64_t | m_bytes |
| bytes processed More... | |
| std::string | m_message |
| message More... | |
| foxxll::timer | m_timer |
| timer More... | |
|
inlineexplicit |
|
inline |
on destruction: tell the time
Definition at line 247 of file timer.hpp.
References tlx::format_iec_units(), timer::seconds(), and TLX_LOG1.
|
inline |
|
protected |