setEndTime() public method

Set the callback execution end time.
public setEndTime ( float $endTime )
$endTime float
Beispiel #1
0
 public function test_result_can_have_total_execution_time()
 {
     $r = new Result();
     $r->setStartTime(2);
     $r->setEndTime(5);
     $this->assertEquals(3, $r->getTime());
 }
Beispiel #2
0
 /**
  * Set values after the callback has executed.
  *
  * @return void
  */
 protected function setEndValues()
 {
     $this->result->setEndTime(microtime(true));
     $this->result->setEndMemory(memory_get_usage());
 }