46 Times(
const int& h,
const int& m,
const int& s,
const int& mill):
hours(h),
63 void setTime(
const int& hours,
const int& minutes,
const int& seconds);
void reset()
reset method updates paused and running g member variables and sets the elapsedTime to 0
Definition timerData.cpp:65
std::chrono::milliseconds duration
Definition timerData.h:125
bool running
Definition timerData.h:128
bool isComplete()
isComplete method returns a true or false depending on if getTimeRemaining returns a value less than ...
Definition timerData.cpp:73
bool index
Definition timerData.h:35
void setTime(const int &hours, const int &minutes, const int &seconds)
setTime method sets the initial time on creation when called from Timer class.
Definition timerData.cpp:36
void pause()
pause stops the timer and calculates the elapsed time to update it
Definition timerData.cpp:54
void setIndex(const int &newIndex)
setIndex method changes the index of the timer depending on if the user moves the timer within the li...
Definition timerData.cpp:113
void printRemainingTime()
printRemainingTime method prints the timer to the console in a user friendly way and in the correctly...
Definition timerData.cpp:93
bool getIsPaused()
getIsPaused tells the caller of the method if the timer is counting down
Definition timerData.cpp:121
TimerData(const int &i)
Definition timerData.cpp:33
bool paused
Definition timerData.h:129
std::vector< Times > getTimes()
getTimes method returns the time of the timer as a Times structure
Definition timerData.cpp:125
void start()
start method updates paused and running member methods to start counting time and updates the startTi...
Definition timerData.cpp:41
std::chrono::steady_clock::time_point startTime
Definition timerData.h:126
std::chrono::milliseconds getTimeRemaining()
Definition timerData.cpp:78
bool getIsRunning()
getIsRunning tells the caller of the method if the timer is counting down
Definition timerData.cpp:117
std::chrono::steady_clock::duration elapsedTime
Definition timerData.h:127
int hours
Definition timerData.h:41
Times(const int &h, const int &m, const int &s, const int &mill)
Definition timerData.h:46
int milliseconds
Definition timerData.h:44
int seconds
Definition timerData.h:43
int minutes
Definition timerData.h:42