00001 <?php 00008 class UTBenchmark extends foUnitTestBase 00009 { 00010 public function doTest() 00011 { 00012 $this->_testBenchmark(); 00013 } 00014 00015 private function _testBenchmark() 00016 { 00017 $timer = new Benchmark(); 00018 00019 $this->setSectionLabel('Benchmark'); 00020 $timer->start(); 00021 $timer->stop(); 00022 00023 $this->setSectionLabel('getElapsedTime'); 00024 eval($this->needDate('$timer->getStartTime()')); 00025 eval($this->needDate('$timer->getStopTime()')); 00026 eval($this->needDate('$timer->getElapsedTime()')); 00027 } 00028 } 00029 ?>