public function microResult()
    {
        if (is_null($this->start_time))
        {
            throw new \Tripod\Exceptions\TimerException('Timer: start method not called !');
        }
        else if (is_null($this->end_time))
        {
            throw new \Tripod\Exceptions\TimerException('Timer: stop method not called !');
        }

        if ($this->micro_result==null)
        {
            list($endTimeMicroSeconds, $endTimeSeconds) = explode(' ', $this->end_time);
            list($startTimeMicroSeconds, $startTimeSeconds) = explode(' ', $this->start_time);

            $differenceInMicroSeconds =  ((float)$endTimeSeconds - (float)$startTimeSeconds)*1000000;

            $this->micro_result = round(($differenceInMicroSeconds + ((float)$endTimeMicroSeconds *1000000)) -  (float)$startTimeMicroSeconds *1000000);
        }
        return $this->micro_result;
    }
public function microResult()
    {
        if (is_null($this->start_time))
        {
            throw new \Tripod\Exceptions\TimerException('Timer: start method not called !');
        }
        else if (is_null($this->end_time))
        {
            throw new \Tripod\Exceptions\TimerException('Timer: stop method not called !');
        }

        if ($this->micro_result==null)
        {
            list($endTimeMicroSeconds, $endTimeSeconds) = explode(' ', $this->end_time);
            list($startTimeMicroSeconds, $startTimeSeconds) = explode(' ', $this->start_time);

            $differenceInMicroSeconds =  ((float)$endTimeSeconds - (float)$startTimeSeconds)*1000000;

            $this->micro_result = round(($differenceInMicroSeconds + ((float)$endTimeMicroSeconds *1000000)) -  (float)$startTimeMicroSeconds *1000000);
        }
        return $this->micro_result;
    }
public function microResult ( ) { if ( is_null ( $ this -> start_time ) ) { throw new \ Tripod \ Exceptions \ TimerException ( 'Timer: start method not called !' ) ; } else if ( is_null ( $ this -> end_time ) ) { throw new \ Tripod \ Exceptions \ TimerException ( 'Timer: stop method not called !' ) ; } if ( $ this -> micro_result == null ) { list ( $ endTimeMicroSeconds , $ endTimeSeconds ) = explode ( ' ' , $ this -> end_time ) ; list ( $ startTimeMicroSeconds , $ startTimeSeconds ) = explode ( ' ' , $ this -> start_time ) ; $ differenceInMicroSeconds = ( ( float ) $ endTimeSeconds - ( float ) $ startTimeSeconds ) * 1000000 ; $ this -> micro_result = round ( ( $ differenceInMicroSeconds + ( ( float ) $ endTimeMicroSeconds * 1000000 ) ) - ( float ) $ startTimeMicroSeconds * 1000000 ) ; } return $ this -> micro_result ; }
Calculate difference between start and end time of event and return in micro-seconds.
@return number time difference in micro seconds between start and end time of event
@throws \Exception, if either of or both  of start or stop method are not called before this method
Calculate difference between start and end time of event and return in micro - seconds .