getDuration() public method

public getDuration ( ) : float
return float
Example #1
0
 /**
  * called when we end a set of phases
  *
  * @param  PhaseGroup_Result $result
  * @return void
  */
 public function endPhaseGroup($result)
 {
     $o = $this->currentPhaseGroup;
     $o->result = $result->getResultString();
     $o->duration = $result->getDuration();
     if (isset($result->filename)) {
         $o->filename = $result->filename;
         $o->shortFilename = basename($result->filename);
     }
     $this->results->testrun->results[] = clone $o;
 }