Ejemplo n.º 1
0
 public static function maybeCreatePhetric()
 {
     if (!isset(self::$_instance)) {
         self::$_instance = new self(null, null, '');
     }
     return self::$_instance;
 }
Ejemplo n.º 2
0
 public function mark($value = null, $other = null)
 {
     if ($value === null && $this->defaultValue != false) {
         $value = $this->defaultValue;
     }
     if (is_null($other)) {
         $other = true;
     }
     Phetric_Sender::histogram($this->_name, $value, $other);
 }
Ejemplo n.º 3
0
 public function mark($value = null, $other = null)
 {
     Phetric_Sender::timer($this->_name, $value);
 }