classes/phing/system/util/Timer.php
public function getElapsedTime($places = 5)
    {
        $etime = $this->etime - $this->stime;
        $format = "%0." . $places . "f";

        return (sprintf($format, $etime));
    }
public function getElapsedTime($places = 5)
    {
        $etime = $this->etime - $this->stime;
        $format = "%0." . $places . "f";

        return (sprintf($format, $etime));
    }
public function getElapsedTime ( $ places = 5 ) { $ etime = $ this -> etime - $ this -> stime ; $ format = "%0." . $ places . "f" ; return ( sprintf ( $ format , $ etime ) ) ; }
This function returns the elapsed time in seconds.

Call start_time() at the beginning of script execution and end_time() at
the end of script execution.  Then, call elapsed_time() to obtain the
difference between start_time() and end_time().

@param int $places decimal place precision of elapsed time (default is 5)

@return string Properly formatted time.
This function returns the elapsed time in seconds .