/** * Add final point and show calculations for system benchmark */ public function finalPoint() { $this->addPoint('system.end'); if (access('development')) { $cogear = getInstance(); $template = new Template('Dev.results'); $template->data = Dev_Gear::humanize($cogear->dev->measurePoint('system')); append('footer', $template->render()); js($this->folder . '/js/inline/debug.js'); } }
/** * Humanize benchmark * * @param type $point * @param type $measure * @return type */ function humanize_bench($point, $measure = NULL) { return Dev_Gear::humanize($point, $measure); }