C++ Actor Framework 0.19
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
caf::telemetry::timer Class Reference

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)
 

Detailed Description

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.


The documentation for this class was generated from the following file: