|
join 1.0
lightweight network framework library
|
RAII guard that automatically calls start() on construction and stop() on destruction. More...
#include <statistics.hpp>
Public Types | |
| using | TimePoint = typename Statistics::TimePoint |
Public Member Functions | |
| ScopedStats (Statistics &stats) noexcept | |
| construct the guard and immediately call start() on stats. | |
| ScopedStats (const ScopedStats &other)=delete | |
| copy constructor. | |
| ScopedStats & | operator= (const ScopedStats &other)=delete |
| copy assignment. | |
| ScopedStats (ScopedStats &&other)=delete | |
| move constructor. | |
| ScopedStats & | operator= (ScopedStats &&other)=delete |
| move assignment. | |
| ~ScopedStats () noexcept | |
| destructor. | |
RAII guard that automatically calls start() on construction and stop() on destruction.
| using join::ScopedStats< Statistics >::TimePoint = typename Statistics::TimePoint |
|
inlineexplicitnoexcept |
construct the guard and immediately call start() on stats.
| stats | statistics collector whose interval is to be bracketed. |
|
delete |
copy constructor.
| other | other object to copy. |
|
delete |
move constructor.
| other | other object to move. |
|
inlinenoexcept |
destructor.
|
delete |
copy assignment.
| other | other object to copy. |
|
delete |
move assignment.
| other | other object to move. |