src/Rocketeer/Services/Display/QueueTimer.php
public function getTime(IdentifierInterface $entity)
    {
        $past = $this->getTimes($entity);
        if (!$past) {
            return;
        }

        // Compute average time
        $average = array_sum($past) / count($past);
        $average = round($average, 2);

        return $average;
    }
public function getTime(IdentifierInterface $entity)
    {
        $past = $this->getTimes($entity);
        if (!$past) {
            return;
        }

        // Compute average time
        $average = array_sum($past) / count($past);
        $average = round($average, 2);

        return $average;
    }
public function getTime ( IdentifierInterface $ entity ) { $ past = $ this -> getTimes ( $ entity ) ; if ( ! $ past ) { return ; } // Compute average time $ average = array_sum ( $ past ) / count ( $ past ) ; $ average = round ( $ average , 2 ) ; return $ average ; }
Compute the predicted execution time of a task.

@param IdentifierInterface $entity

@return float|null
Compute the predicted execution time of a task .