コード例 #1
0
ファイル: TimingTest.php プロジェクト: giberti/phormance
 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
ファイル: timing.php プロジェクト: dw4dev/Phalanger
 static function Start($descr)
 {
     self::$descr = $descr;
     self::$start = self::GetTicks();
     echo $descr . ";";
 }