Source for file timer_example.php
Documentation is available at timer_example.php
require 'Benchmark/Timer.php';
for ($i=0; $i < $amount; $i++ ) {
for ($i=0; $i < 100; $i++ );
// Pass the param "true" to constructor to automatically display the results
$timer->setMarker ('Mark1');
echo "Elapsed time between Start and Mark1: " .
$timer->timeElapsed ('Start', 'Mark1') . "\n";
Documentation generated on Fri, 22 Jun 2007 21:30:05 -0400 by phpDocumentor 1.3.2. PEAR Logo Copyright © PHP Group 2004.
|