Example #1
0
 /**
  * Stops the timer identified by $name.
  *
  * $name can be omitted (false) if only one timer is running.
  *
  * @param string|bool $name
  */
 public function stopTimer($name = false)
 {
     $this->timer->stopTimer($name);
 }
Example #2
0
 public function testSwitchTimerNochSuchOldTimerFailure()
 {
     $time = new ezcDebugTimer();
     $time->startTimer('foo', 'foogroup');
     $this->assertFalse($time->switchTimer('bar', 'baz'));
 }