Measure time between two events
First call should be to $key = Debug
Usage
// basic usage
$string = Debug::timer();
// usage with all arguments
$string = Debug::timer(string $key = '', bool $reset = false);
Arguments
Name | Type(s) | Description |
---|---|---|
key (optional) | string | Leave blank to start timer. Specify existing key (string) to return timer. Specify new made up key to start a named timer. |
reset (optional) | bool | If the timer already exists, it will be reset when this is true. |
Return value
string
int
API reference based on ProcessWire core version 3.0.236