class mTimer { var $pTime; function getMyTime(){ list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } function getStop(){ return printf ("%f",$this->getMyTime() - $this->pTime); } function mTimer(){ $this->pTime = $this->getMyTime(); } function commentTime($msg){ echo "\n"; } }