Oihana PHP System

PrepareBench uses trait:short, trait:short

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.
prepareBench()  : bool
Prepare and returns the 'bench' value.
prepareBoolean()  : bool|null
Prepare and returns the boolean value.

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

prepareBench()

Prepare and returns the 'bench' value.

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

prepareBoolean()

Prepare and returns the boolean value.

protected prepareBoolean(ServerRequestInterface|null $request[, array<string|int, mixed> $args = [] ][, array<string|int, mixed>|null &$params = null ][, string|null $name = null ]) : bool|null
Parameters
$request : ServerRequestInterface|null
$args : array<string|int, mixed> = []
$params : array<string|int, mixed>|null = null
$name : string|null = null
Return values
bool|null

        
On this page

Search results