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'); }
static function Start($descr) { self::$descr = $descr; self::$start = self::GetTicks(); echo $descr . ";"; }