LibLogicalAccess
2.5.0
An Open Source RFID Library
|
#include <utils.hpp>
Public Member Functions | |
ElapsedTimeCounter () | |
size_t | elapsed () const |
size_t | elapsed_micro () const |
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.
|
private |
logicalaccess::ElapsedTimeCounter::ElapsedTimeCounter | ( | ) |
size_t logicalaccess::ElapsedTimeCounter::elapsed | ( | ) | const |
Returns the elapsed number of milliseconds since the creation of the ElapsedTimeCounter object.
size_t logicalaccess::ElapsedTimeCounter::elapsed_micro | ( | ) | const |
Returns the number of elapsed microseconds since the creation of the ElapsedTimeCounter.
|
private |