public function elapsedTime() {
        $currentTime = microtime(true);
        if ($this->startTime === null) {
            $this->startTime            = $currentTime;
            $this->finishTime           = $currentTime;
        } else {
            $this->finishTime           = $currentTime;
            $this->elapsedTimeFromStart = $currentTime - $this->startTime;
        }
    }
public function elapsedTime() {
        $currentTime = microtime(true);
        if ($this->startTime === null) {
            $this->startTime            = $currentTime;
            $this->finishTime           = $currentTime;
        } else {
            $this->finishTime           = $currentTime;
            $this->elapsedTimeFromStart = $currentTime - $this->startTime;
        }
    }
public function elapsedTime ( ) { $ currentTime = microtime ( true ) ; if ( $ this -> startTime === null ) { $ this -> startTime = $ currentTime ; $ this -> finishTime = $ currentTime ; } else { $ this -> finishTime = $ currentTime ; $ this -> elapsedTimeFromStart = $ currentTime - $ this -> startTime ; } }
Calculated the different time of the log line.
Calculated the different time of the log line .