1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Updated Timer (markdown)

Robert Beekman 2017-01-01 13:25:10 +01:00
parent 0ba9d6c122
commit 5573ed530c

@ -39,10 +39,10 @@ end
Timer.SetTimer(timedPrint, 1000, 5, "Hello! ");
```
---
### StopTimer
Stops an existing timer.
### RemoveTimer
Removes an existing timer.
```lua
StopTimer(timer timer);
RemoveTimer(timer timer);
```
##### Required arguments
- **timer:** The timer to stop
@ -53,7 +53,7 @@ local helloTimer;
function timedHello()
print("Hello!");
-- Stop the timer after running once
Timer.StopTimer(helloTimer);
Timer.RemoveTimer(helloTimer);
end
helloTimer = Timer.SetTimer(timedHello, 1000, 5);
```