Barryvdh\Debugbar\LaravelDebugbar::startMeasure PHP Method

startMeasure() public method

Starts a measure
public startMeasure ( string $name, string $label = null )
$name string Internal name, used to stop the measure
$label string Public name
    public function startMeasure($name, $label = null)
    {
        if ($this->hasCollector('time')) {
            /** @var \DebugBar\DataCollector\TimeDataCollector $collector */
            $collector = $this->getCollector('time');
            $collector->startMeasure($name, $label);
        }
    }

Usage Example

 /**
  * Starts a measure
  *
  * @param string $name Internal name, used to stop the measure
  * @param string $label Public name
  * @static 
  */
 public static function startMeasure($name, $label = null)
 {
     return \Barryvdh\Debugbar\LaravelDebugbar::startMeasure($name, $label);
 }
All Usage Examples Of Barryvdh\Debugbar\LaravelDebugbar::startMeasure