Leosac
0.8.0
Open Source Access Control
|
This class provide a simple to get the elapsed time since it's creation. More...
#include <ElapsedTimeCounter.hpp>
Public Member Functions | |
ElapsedTimeCounter () | |
size_t | elapsed () const |
Returns the elapsed time, in milliseconds, since the creation of the ElapsedTimeCounter object. More... | |
Private Types | |
using | TimePoint = std::chrono::steady_clock::time_point |
Private Attributes | |
TimePoint | creation_ |
This class provide a simple to get the elapsed time since it's creation.
The precision of the counter is milliseconds.
Definition at line 36 of file ElapsedTimeCounter.hpp.
|
private |
Definition at line 48 of file ElapsedTimeCounter.hpp.
ElapsedTimeCounter::ElapsedTimeCounter | ( | ) |
Definition at line 25 of file ElapsedTimeCounter.cpp.
size_t ElapsedTimeCounter::elapsed | ( | ) | const |
Returns the elapsed time, in milliseconds, since the creation of the ElapsedTimeCounter object.
Definition at line 30 of file ElapsedTimeCounter.cpp.
|
private |
Definition at line 50 of file ElapsedTimeCounter.hpp.