示例#1
0
 function testTimingUnnamed()
 {
     $timer = new Timing();
     $timer->start();
     $timer->stop();
     $values = $timer->getTestValues();
     $this->assertEquals(1, count($values));
     $this->assertEquals(0, round($values[0], 4), 'Start() then Stop() should be nearly zero');
 }
示例#2
0
 static function Start($descr)
 {
     self::$descr = $descr;
     self::$start = self::GetTicks();
     echo $descr . ";";
 }