NAME
A member function of omni::chrono::async_timer
omni::chrono::async_timer::reset
A member function of omni::chrono::async_timer
#include <omni/chrono/async_timer.hpp>
void omni::chrono::async_timer::reset()
DESCRIPTION
This is the same as call
top
This is the same as call
start
then stop
and will effectively reset the timer back to 0. As an example, if a timer has a 6 second interval, and reset is called 3 seconds after it's started, instead of firing the tick event at 6 seconds, it will fire the event at 9 seconds since it was reset to 0 after 3 seconds.
top
NOTES
This does not interrupt any currently running ticks; that is, if a tick has been fired and then
top
This does not interrupt any currently running ticks; that is, if a tick has been fired and then
reset
is called, the tick event will not be interrupted.
top