示例#1
0
文件: Gear.php 项目: romartyn/cogear
 /**
  * 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');
     }
 }
示例#2
0
文件: Gear.php 项目: brussens/cogear2
/**
 * Humanize benchmark
 *
 * @param type $point
 * @param type $measure
 * @return type
 */
function humanize_bench($point, $measure = NULL)
{
    return Dev_Gear::humanize($point, $measure);
}