RAII timer scope for automatic duration recording with timer_data.
More...
#include <metric_types.h>
RAII timer scope for automatic duration recording with timer_data.
Note: This is named timer_scope to avoid collision with scoped_timer in performance_monitor.h which works with performance_profiler.
- Examples
- custom_metric_types_example.cpp.
Definition at line 579 of file metric_types.h.
◆ timer_scope() [1/3]
| kcenon::monitoring::timer_scope::timer_scope |
( |
timer_data & | timer | ) |
|
|
inlineexplicit |
Definition at line 581 of file metric_types.h.
std::chrono::steady_clock::time_point start_
@ timer
StatsD-specific timer metric.
◆ ~timer_scope()
| kcenon::monitoring::timer_scope::~timer_scope |
( |
| ) |
|
|
inline |
◆ timer_scope() [2/3]
| kcenon::monitoring::timer_scope::timer_scope |
( |
const timer_scope & | | ) |
|
|
delete |
◆ timer_scope() [3/3]
| kcenon::monitoring::timer_scope::timer_scope |
( |
timer_scope && | | ) |
|
|
delete |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ start_
| std::chrono::steady_clock::time_point kcenon::monitoring::timer_scope::start_ |
|
private |
◆ timer_
| timer_data& kcenon::monitoring::timer_scope::timer_ |
|
private |
The documentation for this class was generated from the following file: