Scientist\Result::setStartTime PHP Method

setStartTime() public method

Set the callback execution start time.
public setStartTime ( float $startTime )
$startTime float
    public function setStartTime($startTime)
    {
        $this->startTime = $startTime;
        return $this;
    }

Usage Example

Example #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());
 }
All Usage Examples Of Scientist\Result::setStartTime