Leosac  0.8.0
Open Source Access Control
Leosac::Tools::ElapsedTimeCounter Class Reference

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_
 

Detailed Description

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.

Member Typedef Documentation

◆ TimePoint

using Leosac::Tools::ElapsedTimeCounter::TimePoint = std::chrono::steady_clock::time_point
private

Definition at line 48 of file ElapsedTimeCounter.hpp.

Constructor & Destructor Documentation

◆ ElapsedTimeCounter()

ElapsedTimeCounter::ElapsedTimeCounter ( )

Definition at line 25 of file ElapsedTimeCounter.cpp.

Member Function Documentation

◆ elapsed()

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.

Member Data Documentation

◆ creation_

TimePoint Leosac::Tools::ElapsedTimeCounter::creation_
private

Definition at line 50 of file ElapsedTimeCounter.hpp.


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