|
scclib
Stable Cloud Computing C++ Library
|
Adds timer to a write stream. More...
#include <rwtimer.h>


Public Member Functions | |
| WriteTimer () | |
| Writes return 0 until reset. | |
| WriteTimer (Writer &) | |
| Chain using a reference. More... | |
| WriteTimer (const std::shared_ptr< Writer > &) | |
| Chain using a shared pointer. | |
| void | write_reset (Writer &) |
| Reset the chained writer. | |
| virtual void | write_reset (const std::shared_ptr< Writer > &) |
| Reset the chained writer. | |
| virtual std::shared_ptr< Writer > | write_shared () const |
| virtual size_t | write (const void *, size_t) |
| Write and update time over underlying write. | |
| std::chrono::nanoseconds | write_dur () const |
| void | write_dur (std::chrono::nanoseconds v) |
| void | write_dur_reset () |
| uint64_t | write_calls () const |
| void | write_calls_reset () |
Adds timer to a write stream.
Example from scclib/util/unittest/iohelper.cc
| WriteTimer::WriteTimer | ( | Writer & | w | ) |