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