All pastes #336665 Raw Edit

Someone

public php v1 · immutable
·published 2007-02-02 05:01 UTC
rendered paste body
<?phpclass Timer {   var $str;   var $ert;   function Timer() {      $this->str = $this->gettimer();   }   function gettimer() {       $dat = getrusage();       return 1e-6*($dat['ru_utime.tv_sec']*1e6 + $dat['ru_utime.tv_usec']);   }               function displaytimer() {       $this->etr = $this->gettimer();       return 'Script took ' . round(($this->etr - $this->str),3) . 's to execute.';   }   }?>