method stop documentation in bbn\Util\Timer

Stops a timer for a given key

function(string $key = 'default') { if ($this->hasStarted($key)) { $this->_measures[$key]['num']++; $time = $this->measure($key); $this->_measures[$key]['sum'] += $time; unset($this->_measures[$key]['start']); return $time; } throw new \Exception(X::_("Missing a start declaration for timer")." $key"); }

Stops a timer for a given key BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.