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");
}