src/Core/Benchmark.php
public function getTotal($marker)
    {
        if (isset($this->markers[$marker]['total'])) {
            return $this->markers[$marker]['total'];
        }

        if ($marker === self::APPLICATION_MARKER) {
            $this->markers[self::APPLICATION_MARKER]['total']['time'] = microtime(true) - START_TIME;
            $this->markers[self::APPLICATION_MARKER]['total']['memory'] = memory_get_usage() - START_MEMORY;

            return $this->markers[self::APPLICATION_MARKER]['total'];
        }

        if (!isset($this->markers[$marker]['stop'])) {
            $marker_array = $this->markers[$marker];

            $marker_array['total']['time'] = microtime(true) - $marker_array['start']['time'];
            $marker_array['total']['memory'] = memory_get_usage() - $marker_array['memory']['time'];

            return $marker_array['total'];
        } else {
            $this->markers[$marker]['total']['time'] = $this->markers[$marker]['stop']['time'] - $this->markers[$marker]['start']['time'];
            $this->markers[$marker]['total']['memory'] = $this->markers[$marker]['stop']['memory'] - $this->markers[$marker]['memory']['time'];

            return $this->markers[$marker]['total'];
        }
    }
public function getTotal($marker)
    {
        if (isset($this->markers[$marker]['total'])) {
            return $this->markers[$marker]['total'];
        }

        if ($marker === self::APPLICATION_MARKER) {
            $this->markers[self::APPLICATION_MARKER]['total']['time'] = microtime(true) - START_TIME;
            $this->markers[self::APPLICATION_MARKER]['total']['memory'] = memory_get_usage() - START_MEMORY;

            return $this->markers[self::APPLICATION_MARKER]['total'];
        }

        if (!isset($this->markers[$marker]['stop'])) {
            $marker_array = $this->markers[$marker];

            $marker_array['total']['time'] = microtime(true) - $marker_array['start']['time'];
            $marker_array['total']['memory'] = memory_get_usage() - $marker_array['memory']['time'];

            return $marker_array['total'];
        } else {
            $this->markers[$marker]['total']['time'] = $this->markers[$marker]['stop']['time'] - $this->markers[$marker]['start']['time'];
            $this->markers[$marker]['total']['memory'] = $this->markers[$marker]['stop']['memory'] - $this->markers[$marker]['memory']['time'];

            return $this->markers[$marker]['total'];
        }
    }
@param string $marker

@return array