PHP Class PhpBench\Model\Result\TimeResult

Inheritance: implements PhpBench\Model\ResultInterface
Datei anzeigen Open project: dantleech/phpbench Class Usage Examples

Public Methods

Method Description
__construct ( mixed $time )
fromArray ( array $values )
getKey ( )
getMetrics ( )
getNet ( ) : integer Return the net-time for this iteration.
getRevTime ( integer $revs ) : float Return the time for the given number of revolutions.

Method Details

__construct() public method

public __construct ( mixed $time )
$time mixed Time taken to execute the iteration in microseconds.

fromArray() public static method

public static fromArray ( array $values )
$values array

getKey() public method

public getKey ( )

getMetrics() public method

public getMetrics ( )

getNet() public method

Return the net-time for this iteration.
public getNet ( ) : integer
return integer

getRevTime() public method

Return the time for the given number of revolutions.
public getRevTime ( integer $revs ) : float
$revs integer
return float