Class · aurore
aurore::Timer
On this page
#include <aurore/core/timer.hpp>
class aurore::Timer : public aurore::FiniteTickingFunctions 7
void start(Time duration) Starts the timer directly with a given duration, in ms.
timer.hpp:32Starts the timer with the already set duration.
timer.hpp:37void setDuration(Time duration) Sets the duration of the timer, in ms. Does not stop or reset it.
timer.hpp:43virtual bool onUpdate(Time delta) override Executed every frame while the ticking lives. Delta is the time difference in ms between the last frame and the current one. Must return false if the ticking is finished and should be removed from the list of active tickings. The end callback will automatically be called then.
Overrides aurore::Ticking::onUpdate
Also the functions of aurore::FiniteTicking (2), aurore::Ticking (5).
Protected attributes 2
Read from Aurore's headers by Doxygen at each build · library/include