protected function timeToClearPerQueue(Supervisor $supervisor, Collection $pools)
    {
        return $pools->mapWithKeys(function ($pool, $queue) use ($supervisor) {
            $size = $this->queue->connection($supervisor->options->connection)->readyNow($queue);

            return [$queue => ($size * $this->metrics->runtimeForQueue($queue))];
        });
    }
protected function timeToClearPerQueue(Supervisor $supervisor, Collection $pools)
    {
        return $pools->mapWithKeys(function ($pool, $queue) use ($supervisor) {
            $size = $this->queue->connection($supervisor->options->connection)->readyNow($queue);

            return [$queue => ($size * $this->metrics->runtimeForQueue($queue))];
        });
    }
protected function timeToClearPerQueue ( Supervisor $ supervisor , Collection $ pools ) { return $ pools -> mapWithKeys ( function ( $ pool , $ queue ) use ( $ supervisor ) { $ size = $ this -> queue -> connection ( $ supervisor -> options -> connection ) -> readyNow ( $ queue ) ; return [ $ queue => ( $ size * $ this -> metrics -> runtimeForQueue ( $ queue ) ) ] ; } ) ; }
Get the times in milliseconds needed to clear the queues.

@param  \Laravel\Horizon\Supervisor  $supervisor
@param  \Illuminate\Support\Collection  $pools
@return \Illuminate\Support\Collection
Get the times in milliseconds needed to clear the queues .