X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0c133e13b36a923c65f94499554e432bc3a0daa..9c34a216817028bc533e07873d047208a96b05a2:/include/wx/timer.h diff --git a/include/wx/timer.h b/include/wx/timer.h index 0b9a63b082..035b299359 100644 --- a/include/wx/timer.h +++ b/include/wx/timer.h @@ -81,6 +81,10 @@ public: // timer if it is already running virtual bool Start(int milliseconds = -1, bool oneShot = false); + // start the timer for one iteration only, this is just a simple wrapper + // for Start() + bool StartOnce(int milliseconds = -1) { return Start(milliseconds, true); } + // stop the timer, does nothing if the timer is not running virtual void Stop();