function time(): int {
        if($this->nativeHrtime) {
            if(!$this->lastTime) {
                $this->lastTime = $this->timer;
            }
            
            $time = \hrtime(true);
            $elapsed = (int) ($time - $this->lastTime);
            $this->lastTime = $time;
        } elseif($this->hrtime) {
            $this->timer->stop();
            $elapsed = (int) $this->timer->getLastElapsedTime(\HRTime\Unit::NANOSECOND);
            $this->timer->start();
        } else {
            if(!$this->lastTime) {
                $this->lastTime = $this->timer;
            }
            
            $time = \microtime(true);
            $elapsed = $time - $this->lastTime;
            
            $this->lastTime = $time;
            $elapsed = \ceil(($elapsed * 1000000000));
        }
        
        return ((int) $elapsed);
    }
function time(): int {
        if($this->nativeHrtime) {
            if(!$this->lastTime) {
                $this->lastTime = $this->timer;
            }
            
            $time = \hrtime(true);
            $elapsed = (int) ($time - $this->lastTime);
            $this->lastTime = $time;
        } elseif($this->hrtime) {
            $this->timer->stop();
            $elapsed = (int) $this->timer->getLastElapsedTime(\HRTime\Unit::NANOSECOND);
            $this->timer->start();
        } else {
            if(!$this->lastTime) {
                $this->lastTime = $this->timer;
            }
            
            $time = \microtime(true);
            $elapsed = $time - $this->lastTime;
            
            $this->lastTime = $time;
            $elapsed = \ceil(($elapsed * 1000000000));
        }
        
        return ((int) $elapsed);
    }
function time ( ) : int { if ( $ this -> nativeHrtime ) { if ( ! $ this -> lastTime ) { $ this -> lastTime = $ this -> timer ; } $ time = \ hrtime ( true ) ; $ elapsed = ( int ) ( $ time - $ this -> lastTime ) ; $ this -> lastTime = $ time ; } elseif ( $ this -> hrtime ) { $ this -> timer -> stop ( ) ; $ elapsed = ( int ) $ this -> timer -> getLastElapsedTime ( \ HRTime \ Unit :: NANOSECOND ) ; $ this -> timer -> start ( ) ; } else { if ( ! $ this -> lastTime ) { $ this -> lastTime = $ this -> timer ; } $ time = \ microtime ( true ) ; $ elapsed = $ time - $ this -> lastTime ; $ this -> lastTime = $ time ; $ elapsed = \ ceil ( ( $ elapsed * 1000000000 ) ) ; } return ( ( int ) $ elapsed ) ; }
Returns the elapsed time since the last `time` call, in nanoseconds.
@return int
Returns the elapsed time since the last time call in nanoseconds .