__init_timer = $this->getmicrotime(); $this -> __prev_timer = $this -> __init_timer; $this-> _pf('start'); } function getmicrotime() { list ($usec, $sec) = explode(" ", microtime()); return ((float) $usec + (float) $sec); } function _pf($comment) { $current_timer = $this->getmicrotime(); $t = (1000 * ($current_timer - $this->__init_timer)); $d = (1000 * ($current_timer - $this->__prev_timer)); $this -> __prev_timer = $current_timer; $this->__data[] = array($t,$comment,$d); } function render() { $this-> _pf('end'); echo "\n\n\n\n"; } } ?>