24 Timer(
int hours,
int minutes,
int seconds);
31 void start(
int countdownMilliseconds);
55 void addTime(
int seconds);
73 int remainingMilliseconds();
80 double percentElapsed();
90 chrono::time_point<chrono::steady_clock>
_endTime;
int _countdownMilliseconds
The duration of the countdown in milliseconds.
The Timer class provides a countdown timer with start, pause, resume, reset, and time adjustment func...
int _startMilliseconds
The initial duration of the timer in milliseconds.
bool _running
Indicates whether the timer is currently running.
int _remainingMilliseconds
The remaining time in milliseconds.
chrono::time_point< chrono::steady_clock > _pauseTime
The time point when the timer was paused.
chrono::time_point< chrono::steady_clock > _endTime
The time point when the timer will end.
int _incrementMilliseconds
The increment time in milliseconds for adding time.