src/Viserio/Component/Profiler/DataCollector/TimeDataCollector.php
public function collect(ServerRequestInterface $serverRequest, ResponseInterface $response): void
    {
        $this->requestEndTime = \microtime(true);

        foreach (\array_keys($this->startedMeasures) as $name) {
            $this->stopMeasure($name);
        }

        \usort($this->measures, static function ($a, $b) {
            if ($a['start'] === $b['start']) {
                return 0;
            }

            return $a['start'] < $b['start'] ? -1 : 1;
        });

        $this->data = [
            'start'        => $this->requestStartTime,
            'end'          => $this->requestEndTime,
            'duration'     => $this->getRequestDuration(),
            'duration_str' => $this->formatDuration($this->getRequestDuration()),
            'measures'     => $this->measures,
        ];
    }
public function collect(ServerRequestInterface $serverRequest, ResponseInterface $response): void
    {
        $this->requestEndTime = \microtime(true);

        foreach (\array_keys($this->startedMeasures) as $name) {
            $this->stopMeasure($name);
        }

        \usort($this->measures, static function ($a, $b) {
            if ($a['start'] === $b['start']) {
                return 0;
            }

            return $a['start'] < $b['start'] ? -1 : 1;
        });

        $this->data = [
            'start'        => $this->requestStartTime,
            'end'          => $this->requestEndTime,
            'duration'     => $this->getRequestDuration(),
            'duration_str' => $this->formatDuration($this->getRequestDuration()),
            'measures'     => $this->measures,
        ];
    }
{@inheritdoc}