public function b_groupEnd()
{
$end = microtime(true);
for ($i = count($this->stack) - 1; $i >= 0; $i--) {
if ($this->stack[$i]['style'] == 'group' && $this->stack[$i]['end'] == 0) {
$this->stack[$i]['end'] = $end;
$time = round(($this->stack[$i]['end'] - $this->stack[$i]['start']) * 1000, 2);
$this->stack[$i]['time'] = $time;
unset($this->stack[$i]['start']);
$name = $this->stack[$i]['name'];
break;
}
}
if (isset($name)) {
$this->stack[] = ['style' => 'groupend', 'name' => $name, 'time' => $time];
}
}