Debug::saveTimer()

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

NameType(s)Description
$keystring
$note (optional)string

Optional note to include in getSavedTimer

Return value

bool string

Returns elapsed time, or false if timer didn't exist


Debug methods and properties

API reference based on ProcessWire core version 3.0.251