method result documentation in bbn\Util\Timer
function(string $key = 'default')
{
if (isset($this->_measures[$key])) {
if ($this->hasStarted($key)) {
$this->stop($key);
}
return [
'num' => $this->_measures[$key]['num'],
'total' => number_format($this->_measures[$key]['sum'], 10, '.', ''),
'average' => number_format(
$this->_measures[$key]['num'] != 0
? $this->_measures[$key]['sum'] / $this->_measures[$key]['num']
: 0, 10, '.', ''
)
];
}
}
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.
© 2011-2025
BBN Solutions