util.Timer
Description
Creates a timer object. The returned timer will be already started with given duration.
Arguments
1 number duration = 0
How long you want the timer to be.
Elapsed() will return true only after this much time has passed.Returns
1 table
A timer object. It has the following methods:
Reset()- Resets and stops the timer.Start( duration = 0 )- (Re)starts the timer with given durationStarted()- Returnstrueif the timer has been started. It will continue to return true even after the duration has passed.Elapsed()- Returnstrueif the timer duration has elapsed since its creation or the call toStart()GetElaspedTime()- Returns amount of time since timer started.
Page views: 22,515
Updated: A Long Time Ago
Updated: A Long Time Ago
Garry's Mod
Rust
Steamworks
Wiki Help