util.Timer

From Garry's Mod
Jump to: navigation, search
 util.Timer( )

Description

Creates a timer object.

Arguments

number startdelay=0

How long you want the timer to be.

Returns

table

A timer object. It has next 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
Personal tools
Navigation