plugins/include/timers.inc
changeset 822 73f60bf0285d
parent 716 9503ad1d8ebb
child 1108 fafe809b16ca
     1.1 --- a/plugins/include/timers.inc	Mon May 21 01:28:38 2007 +0000
     1.2 +++ b/plugins/include/timers.inc	Mon May 21 01:54:17 2007 +0000
     1.3 @@ -89,6 +89,17 @@
     1.4  native TriggerTimer(Handle:timer, bool:reset=false);
     1.5  
     1.6  /**
     1.7 + * Returns the simulated game time.
     1.8 + *
     1.9 + * @param simulated			Retrieves whether or not the tick count
    1.10 + *							is being manually simulated by SourceMod.
    1.11 + *							This is the case if no players have joined
    1.12 + *							the map yet.
    1.13 + * @return					Time based on the game tick count.
    1.14 + */
    1.15 +native Float:GetTickedTime(&bool:simulated);
    1.16 +
    1.17 +/**
    1.18   * Creates a timer associated with a new data pack, and returns the datapack.
    1.19   * @note The datapack is automatically freed when the timer ends.
    1.20   * @note The position of the datapack is not reset or changed for the timer function.