C++ Actor Framework 1.0.0
|
Convenience helper for measuring durations such as latency using a histogram with second resolution. More...
#include <timer.hpp>
Public Types | |
using | clock_type = std::chrono::steady_clock |
Public Member Functions | |
timer (dbl_histogram *h) | |
auto | histogram_ptr () const noexcept |
auto | started () const noexcept |
Static Public Member Functions | |
static void | observe (dbl_histogram *h, clock_type::time_point start) |
Convenience helper for measuring durations such as latency using a histogram with second resolution.
The measurement starts when creating the objects and finishes when the timer goes out of scope.