Snowair\Debugbar\PhalconDebugbar::addMeasurePoint PHP Method

addMeasurePoint() public method

public addMeasurePoint ( $label, $start = null )
    public function addMeasurePoint($label, $start = null)
    {
        if ($this->hasCollector('time')) {
            /** @var \DebugBar\DataCollector\TimeDataCollector $collector */
            $collector = $this->getCollector('time');
            if (!$start && ($measures = $collector->getMeasures())) {
                $latest = end($measures);
                $start = $latest['end'];
            } elseif (defined('PHALCON_START')) {
                $start = PHALCON_START;
            } else {
                $start = isset($_SERVER["REQUEST_TIME_FLOAT"]) ? $_SERVER["REQUEST_TIME_FLOAT"] : $_SERVER["REQUEST_TIME"];
            }
            $collector->addMeasure($label, $start, microtime(true));
        }
    }