![]() |
|
Snippets |
|
This snippet allows you to evaluate functions speed and display them in symfony debug bar.
$timer = sfTimerManager::getTimer ('ldap_request'); // Create and start a new timer // do some stuff $timer->addTime (); // stop and store the timer value
Comments on this snippet
The correct method to store the timer value is addTime(), not addTimer().
So please use
It's corrected, thanks for the typo !