public function getElapsedInMilliseconds() : float
    {
        if ($this->startedOn === null) {
            throw new NotStartedException();
        }

        return ($this->stoppedOn === null) ?
            $this->toMilli(microtime(true) - $this->startedOn) :
            $this->getDurationInMilliseconds();
    }
public function getElapsedInMilliseconds() : float
    {
        if ($this->startedOn === null) {
            throw new NotStartedException();
        }

        return ($this->stoppedOn === null) ?
            $this->toMilli(microtime(true) - $this->startedOn) :
            $this->getDurationInMilliseconds();
    }
public function getElapsedInMilliseconds ( ) : float { if ( $ this -> startedOn === null ) { throw new NotStartedException ( ) ; } return ( $ this -> stoppedOn === null ) ? $ this -> toMilli ( microtime ( true ) - $ this -> startedOn ) : $ this -> getDurationInMilliseconds ( ) ; }
Get the current elapsed Interval of the Timer in MilliSeconds

@throws \PhilKra\Exception\Timer\NotStartedException

@return float
Get the current elapsed Interval of the Timer in MilliSeconds