Location: PHPKode > scripts > timing class > timing-class/sample.php
<?php
include "timing.class.php";
$timer=new timing;
echo "echo() function: ";
$timer->start();
echo "testing the time required to execute function: ";
$timer->stop();
echo $timer->get_time()." seconds";
echo "<br>";
echo "print() function: ";
$timer->start();
print "testing the time required to execute function: ";
$timer->stop();
print $timer->get_time()." seconds";
?>
Return current item: timing class