Audacity 3.2.0
|
A clock that can be paused and resumed. More...
#include <DynamicRangeProcessorClock.h>
Public Member Functions | |
std::chrono::steady_clock::time_point | GetNow () const |
void | Pause () |
void | Resume () |
Private Attributes | |
std::optional< std::chrono::steady_clock::time_point > | mPauseBegin |
std::chrono::duration< double > | mElapsedWhilePaused |
A clock that can be paused and resumed.
Audacity: A Digital Audio Editor
Matthieu Hodgkinson
Definition at line 19 of file DynamicRangeProcessorClock.h.
std::chrono::steady_clock::time_point DynamicRangeProcessorClock::GetNow | ( | ) | const |
Audacity: A Digital Audio Editor
DynamicRangeProcessorClock.cpp
Matthieu Hodgkinson
Definition at line 13 of file DynamicRangeProcessorClock.cpp.
References mElapsedWhilePaused.
Referenced by DynamicRangeProcessorHistoryPanel::OnTimer().
void DynamicRangeProcessorClock::Pause | ( | ) |
Definition at line 20 of file DynamicRangeProcessorClock.cpp.
References mPauseBegin.
void DynamicRangeProcessorClock::Resume | ( | ) |
Definition at line 25 of file DynamicRangeProcessorClock.cpp.
References mElapsedWhilePaused, and mPauseBegin.
|
private |
Definition at line 28 of file DynamicRangeProcessorClock.h.
|
private |
Definition at line 27 of file DynamicRangeProcessorClock.h.