Save the current time of the given timer which can be later retrieved with getSavedTimer($key)
Note this also stops/removes the timer.
Usage
// basic usage
$bool = Debug::saveTimer(string $key);
// usage with all arguments
$bool = Debug::saveTimer(string $key, string $note = '');
Arguments
Name | Type(s) | Description |
---|---|---|
key | string | |
note (optional) | string | Optional note to include in getSavedTimer |
Return value
bool
string
Returns elapsed time, or false if timer didn't exist
API reference based on ProcessWire core version 3.0.236