Oihana PHP System

BenchTrait

Table of Contents

Properties

$bench  : bool
The bench flag to test the script execution time of a function.

Methods

endBench()  : string|null
Stop the bench.
initializeBench()  : $this
Initialize the `bench` property.
startBench()  : int|float|null
Start the bench process.

Properties

$bench

The bench flag to test the script execution time of a function.

public bool $bench = false

Methods

endBench()

Stop the bench.

public endBench(int|float|null $timestamp[, array<string|int, mixed> &$options = [] ]) : string|null
Parameters
$timestamp : int|float|null
$options : array<string|int, mixed> = []
Return values
string|null

The time interval of the bench.

initializeBench()

Initialize the `bench` property.

public initializeBench([bool|array<string|int, mixed> $init = [] ]) : $this
Parameters
$init : bool|array<string|int, mixed> = []

Optional initialization array or the bench boolean value.

Return values
$this

startBench()

Start the bench process.

public startBench(ServerRequestInterface|null $request[, array<string|int, mixed> $args = [] ][, array<string|int, mixed>|null &$params = null ]) : int|float|null
Parameters
$request : ServerRequestInterface|null
$args : array<string|int, mixed> = []
$params : array<string|int, mixed>|null = null
Return values
int|float|null

        
On this page

Search results