- microtime: documentation ( source)
<?php
$tstart = microtime(true);
for($x=1; $x<=1000000; ++$x) {
}
$tstop = microtime(true);
print $tstop - $tstart;
print" < ";
$tstart1 = microtime(true);
for($x=1; $x<=1000000; $x++) {
}
$tstop1 = microtime(true);
print $tstop1 - $tstart1;