load($str, false);
list($eu, $es) = explode(' ', microtime());
list($bu, $bs) = explode(' ', $start);
$diff = ((float)$eu+(float)$es-(float)$bu-(float)$bs)*1000;
if ($diff>$max)
$max = $diff;
if ($diff<$min)
$min = $diff;
$all += $diff;
echo sprintf('(%.1f)', $diff).'
';
}
echo '
-------------------------
';
echo 'min: ' . $min . '
';
echo 'max: ' . $max . '
';
echo '
avg: ' . $all/$count . '
';
?>