TimeLimit
Timer.
Tags
Table of Contents
Methods
- checkTimeEnd() : bool
- Checks timer for time limitation.
- getTimeLimit() : int
- Gets limitation time in seconds.
- hasTimeLimitReached() : bool
- Tells true if time limit reached.
- instanceTimer() : Timer
- Gets timer.
- setTimeLimit() : static
- Sets limitation time in seconds.
- setTimer() : void
- Sets start up time.
- startTimer() : void
- Sets start up time.
Methods
checkTimeEnd()
Checks timer for time limitation.
public
checkTimeEnd() : bool
Return values
boolgetTimeLimit()
Gets limitation time in seconds.
public
getTimeLimit() : int
Return values
inthasTimeLimitReached()
Tells true if time limit reached.
public
hasTimeLimitReached() : bool
Return values
boolinstanceTimer()
Gets timer.
public
instanceTimer() : Timer
Return values
TimersetTimeLimit()
Sets limitation time in seconds.
public
setTimeLimit(int $timeLimit) : static
Parameters
- $timeLimit : int
-
Timeout in seconds.
Return values
staticsetTimer()
Sets start up time.
public
setTimer(Timer $timer) : void
Parameters
- $timer : Timer
startTimer()
Sets start up time.
public
startTimer() : void