public function addTemplate($name, $type = self::TEMPLATE_START, $file) {
        if ($this->_enabled == true) {
            switch ($type) {
                case self::TEMPLATE_START:
                    $this->_template[$file]['name'] = $name;
                    $this->_template[$file]['time'] = microtime(true);
                    break;

                case self::TEMPLATE_END:
                    $this->_template[$file]['time'] = round((microtime(true) - $this->_template[$file]['time']) * 1000, 4);
                    break;
            }
        }
    }