You are currently browsingthe website for symfony 1
Visit the Symfony2 website
« Back to API menu
sfTimer class allows to time some PHP code.
Stops the timer and add the amount of time since the start to the total time.
returns Time spend for the last call
Gets the number of calls this timer has been called to time code.
returns Number of calls
Gets the total time elapsed for all calls of this timer.
returns Time in seconds
Starts the timer.
Creates a new sfTimer instance.