|
| $totalTime = null |
|
| $name = '' |
|
| $calls = 0 |
|
Timer::__construct |
( |
|
$name = '' | ) |
|
Creates a new sfTimer instance.
- Parameters
-
string | $name | The name of the timer |
Stops the timer and add the amount of time since the start to the total time.
- Returns
- integer Time spend for the last call
Gets the number of calls this timer has been called to time code.
- Returns
- integer Number of calls
Timer::getElapsedTime |
( |
| ) |
|
Gets the total time elapsed for all calls of this timer.
- Returns
- integer Time in milliseconds
The documentation for this class was generated from the following file:
- cms-full/base/lib/classes/Timer.php