<?php
/**
* Project: Breeze framework
* Author: Jager Mesh (hide@address.com)
*
* @version 1.1.0.0
* @package Breeze Core
*/
require_once(dirname(__FILE__).'/BrSingleton.php');
class BrProfiler extends BrSingleton {
private $profilingTargets = array();
function start($name) {
$this->profilingTargets[$name] = br()->getMicrotime();
}
function finish($name) {
return (br()->getMicroTime() - $this->profilingTargets[$name]);
}
}