ADUL
Collection of reusable C++ utilities
|
This class represent the sequence of durations and interface of working with them. More...
#include <time.hpp>
Public Member Functions | |
void | startNewDuration () |
chrono::steady_clock::duration | getCurrentDuration () const |
void | pauseCurrentDuration () |
void | continueCurrentDuration () |
void | stopCurrentDuration () |
void | saveCurrentDuration () |
void | clearSavedDurations () |
const std::vector< chrono::steady_clock::duration > & | getSavedDurations () const |
Protected Attributes | |
std::vector< chrono::steady_clock::duration > | durations |
chrono::steady_clock::time_point | startPoint |
chrono::steady_clock::duration | currentDuration |
bool | flagReady = false |
This class represent the sequence of durations and interface of working with them.
It uses std::chrono::steady_clock STL interface
Must be started before usage
void adul::time::DurationsClock::clearSavedDurations | ( | ) |
void adul::time::DurationsClock::continueCurrentDuration | ( | ) |
chrono::steady_clock::duration adul::time::DurationsClock::getCurrentDuration | ( | ) | const |
const std::vector< chrono::steady_clock::duration > & adul::time::DurationsClock::getSavedDurations | ( | ) | const |
void adul::time::DurationsClock::pauseCurrentDuration | ( | ) |
void adul::time::DurationsClock::saveCurrentDuration | ( | ) |
void adul::time::DurationsClock::startNewDuration | ( | ) |
void adul::time::DurationsClock::stopCurrentDuration | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |