BoosterSeat
0.1
A C++ library that includes common utilities that are used in other projects.
|
Interface for a timer class. More...
#include <timer.hpp>
Public Member Functions | |
virtual | ~ITimer ()=default |
Destructor. More... | |
virtual bool | isDone () const =0 |
Check if the timer has expired. More... | |
virtual void | reset ()=0 |
Reset the timer to the current time. More... | |
virtual void | setDone ()=0 |
Set the timer to be done. Changes the start time. More... | |
virtual void | setTimeout (int timeout_ms)=0 |
Set the timeout of the timer. Does not reset the timer. More... | |
Interface for a timer class.
|
virtualdefault |
Destructor.
|
pure virtual |
Reset the timer to the current time.
Implemented in bst::SoftwareTimer, and bst::Timer.
|
pure virtual |
Check if the timer has expired.
Implemented in bst::SoftwareTimer, and bst::Timer.
|
pure virtual |
Set the timeout of the timer. Does not reset the timer.
Implemented in bst::SoftwareTimer, and bst::Timer.
|
pure virtual |
Set the timer to be done. Changes the start time.
Implemented in bst::SoftwareTimer, and bst::Timer.