X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftimer.h;h=9e93c903225a08248fd6be69ff01542cc31a9fa7;hb=e8ad98fce495724db80d89a14de98815e0b7e877;hp=4640e575bc7d839130bd01db1fdd39dcb27acf4b;hpb=0c3137495e5ce06110dbd2931b4557548506bde4;p=supertux.git diff --git a/src/timer.h b/src/timer.h index 4640e575b..9e93c9032 100644 --- a/src/timer.h +++ b/src/timer.h @@ -21,6 +21,9 @@ public: * successfull check */ bool check(); + /** stop the timer */ + void stop() + { start(0); } /** returns the period of the timer or 0 if it isn't started */ float get_period() const