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.'; } } ?>