From 0ba9d6c122b05f097e8bb8223b6adacf775eb31f Mon Sep 17 00:00:00 2001 From: Robert Beekman Date: Sun, 1 Jan 2017 13:22:25 +0100 Subject: [PATCH] Updated Timer (markdown) --- Timer.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Timer.md b/Timer.md index 911d385..eca575e 100644 --- a/Timer.md +++ b/Timer.md @@ -40,13 +40,21 @@ Timer.SetTimer(timedPrint, 1000, 5, "Hello! "); ``` --- ### StopTimer -TODO -#### Syntax: +Stops an existing timer. ```lua -TODO +StopTimer(timer timer); ``` +##### Required arguments +- **timer:** The timer to stop + #### Example: ```lua -TODO +local helloTimer; +function timedHello() + print("Hello!"); + -- Stop the timer after running once + Timer.StopTimer(helloTimer); +end +helloTimer = Timer.SetTimer(timedHello, 1000, 5); ``` --- \ No newline at end of file