28 Stopwatch(
int hours,
int minutes,
int seconds);
54 vector<int> getSplits();
88 int currentMilliseconds();
100 #endif // STOPWATCH_HPP The Stopwatch class provides a simple timer with start, pause, resume, and reset functionalities.
chrono::time_point< chrono::steady_clock > _pauseTime
The time point when the stopwatch was paused.
int _currMilliseconds
The current elapsed time in milliseconds.
chrono::time_point< chrono::steady_clock > _startTime
The time point when the stopwatch was started.
vector< int > _splits
Vector of all splits for the stopwatch.
bool _running
Indicates whether the stopwatch is currently running.