예제 #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);
}