Return the total time spent by redirection

@return float
776804
public function getTotalRedirectionTime()
    {
        return array_reduce(iterator_to_array($this->getCommands()), function ($time, $value) {
            $time += $value['curl']['redirectTime'];

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

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

        return $endTime - $this->call->time();
    }
19150
public function getAge() {
		if($this->Started) {
			$started = intval($this->dbObject('Started')->Format('U'));
			$now = intval(SS_Datetime::now()->Format('U'));
			if($started && $now) return $now - $started;
		}
		return 0;
	}
631431
public function getEndTime()
    {
        $count = \count($this->periods);

        return $count ? $this->periods[$count - 1]->getEndTime() : 0;
    }
626515
public function gatherSpeedData()
    {
        $elapsedTime = microtime(true) - $this->startTime;
        $elapsedTime = round($elapsedTime, 3);
        $allowedTime = ini_get('max_execution_time');
        return array(
            'elapsed' => $elapsedTime,
            'allowed' => $allowedTime
        );
    }
455391
public function getAvgExecutionTime(): float
    {
        return $this->getTotalExecutionTime() ? ($this->getTotalExecutionTime() / \count($this->data['commands'])) : (float) 0;
    }
226970
public function getExecutionTimeProportion()
    {
        if ($this->getExecutionTime() && $this->getProcess()->getAvgExecutionTime()) {
            return round($this->getExecutionTime() / $this->getProcess()->getAvgExecutionTime(), 2);
        } elseif ($this->getExecutionTime()) {
            return $this->getExecutionTime();
        } elseif ($this->getProcess()->getAvgExecutionTime()) {
            return 0;
        } else {
            return 1;
        }
    }
444243
public function getOutput()
    {
        $totalExecution = profiler()->getTotalExecution();
        $metrics = profiler()->getMetrics();

        $totalTime = 0;
        $totalMemory = 0;

        foreach ($metrics as $metric) {
            $totalTime += ($metric->endTime - $metric->startTime);
            $totalMemory += ($metric->endMemory - $metric->startMemory);
        }

        $segmentDuration = $this->roundTo($totalTime * 1000, 5);
        $segmentCount = (int)ceil($totalTime / $segmentDuration);

        $displayTime = $segmentCount * $segmentDuration;

        foreach ($metrics as $metric) {
            $metric->offset = (($metric->startTime - $totalExecution->startTime) * 1000 / $displayTime) * 100;
            $metric->length = (($metric->endTime - $metric->startTime) * 1000 / $displayTime) * 100;
        }

        $totalTime = $totalExecution->getFormattedTime($totalTime, 2);
        $totalMemory = $totalExecution->getFormattedMemorySize($totalMemory);
        $allocatedMemory = $totalExecution->getFormattedMemorySize(memory_get_usage(true));
        $peakMemory = $totalExecution->getFormattedMemorySize(memory_get_peak_usage(true));

        $files = $this->getFiles();
        $logs = $this->getLogs();
        $vars = $this->getVars();
        $database = $this->getDatabase();

        ob_start();
        include __DIR__ . '/Views/Toolbar.php';
        $output = ob_get_contents();
        ob_end_clean();

        return $output;
    }
1232968
public function getTotalTimeoutMs()
    {
        $field = EnumRequestOption::TOTAL_TIMEOUT_MS;
        return isset($this->options[$field]) ? $this->options[$field] : 0;
    }
994210
public function timer_diff()
    {
        $PAGELOADTIME = microtime();
        $PAGELOADTIME = explode(' ', $PAGELOADTIME);
        $PAGELOADTIME = $PAGELOADTIME[1] + $PAGELOADTIME[0];
        $now = $PAGELOADTIME;
        $TIMEDIFF = ($now - $this->basetime);

        return $TIMEDIFF;
    }
1200537
public function getDuration() : float
    {
        if ($this->stoppedOn === null) {
            throw new NotStoppedException();
        }

        return $this->toMicro($this->stoppedOn - $this->startedOn);
    }
831338
public function getLength()
        {
        	if(!$this->_hasGetLen) {
        		$this->_hasGetLen = true;
		        $this->_length = $this->_redis->llen($this->_key);
	        }
                return $this->_length;
        }
1088288
public function getRedirect()
    {
        if (!$this->isRedirect())
            return null;

        if ($this->isPermanentRedirect())
            return substr($this->name, 19);

        return substr($this->name, 9);
    }
171909
public function getDuration() : ?float 
    {
        if ( ! $this->hasDuration()) {
            $this->setDuration($this->getDefaultDuration());
        }
        return $this->duration;
    }
233314
public function duration()
    {
        if ($update = $this->latest()) {
            return $this->wrappedObject->created_at->diffInSeconds($update->occurred_at);
        }

        return 0;
    }
1105541
public function getRealtimeData()
    {
        $this->validateViewId();

        $this->setMetrics('rt:activeUsers');

        $data = $this->service->data_realtime->get(
            $this->viewId,
            $this->getMetricsAsString(),
            $this->getOptions()
        );

        return $data->toSimpleObject()->totalsForAllResults;
    }
1009320
public function getRedirectData()
    {
        if ($this->isRedirect()) {
            return array(
                'PaReq' => $this->getDataItem('PAReq'),
                'TermUrl' => $this->getRequest()->getReturnUrl(),
                'MD' => $this->getDataItem('MD'),
            );
        }
    }