ByREV php Classes Timer – Determine execution time in PHP
February 21st, 2009
3 comments
Measuring PHP execution time with ByREV PHP Classes Timer.
class ByRevTimer
{
public function StartTimer() {
$GLOBALS['_byrev_timer_'][] = microtime();
return count( $GLOBALS['_byrev_timer_'] ) - 1;
}
function ReadTimer($id,$restart=true) {
if (isset($GLOBALS['_byrev_timer_'][$id])) {
$mtime = microtime();
$end_time = explode(" ",$mtime);
$end_time = $end_time[1] ...
Categories: Bookmarks, PhP, Tech Classes Timer, execution time, PHP Classes, PHP Script, PHP Speed, php timer, StartTimer








