Konafets / typo3_debugbar

A TYPO3 debugbar utilizing the PHP Debugbar to provide information of the system health to the frontend.
GNU General Public License v2.0
37 stars 6 forks source link

Improve README #43

Open infabo opened 6 years ago

infabo commented 6 years ago

Hi,

can you provide a better example for the following code from the README:

startMeasure('render', 'Time for rendering');
stopMeasure('render');
addMeasure('now', TYPO3_START, microtime(true));
measure('My long operation', function() {
    // Do something…
});

How to read this piece of code? Are all these lines necessary for a timer? Thanks