src/Call/CallVerifier.php
public function duration(): ?float
    {
        $endTime = $this->call->endTime();

        if (null === $endTime) {
            return null;
        }

        return $endTime - $this->call->time();
    }
public function duration(): ?float
    {
        $endTime = $this->call->endTime();

        if (null === $endTime) {
            return null;
        }

        return $endTime - $this->call->time();
    }
public function duration ( ) : ? float { $ endTime = $ this -> call -> endTime ( ) ; if ( null === $ endTime ) { return null ; } return $ endTime - $ this -> call -> time ( ) ; }
Get the call duration.

@return float|null The call duration in seconds, or null if the call has not yet completed.
Get the call duration .