public function buildTree(Timer $timer)
{
$times = $timer->getTimes();
if (!isset($times[':end'])) {
$times[':end'] = microtime();
}
$begin = $this->findBeginTime($times);
$end = $this->findEndTime($times);
$this->total = $this->diffMicrotime($begin, $end);
return $this->analyzePeriod('', $times);
}