Garry's Mod Wiki

util.Timer

  table util.Timer( number startdelay = 0 )

Description

Creates a timer object.

Arguments

1 number startdelay = 0
How long you want the timer to be.

Returns

1 table
A timer object. It has the following methods:
  • Reset() - Resets the timer to nothing
  • Start( time ) - Starts the timer, call with end time
  • Started() - Returns true if the timer has been started
  • Elapsed() - Returns true if the time has elapsed