int getDuration() Gets the duration of the events (including all periods).
int getEndTime() Gets the relative time of the end of the period.
bool isStarted(string $name) Checks if the event was started.
float getOrigin() Gets the origin. Return
StopwatchEvent[] getEvents()
class Stopwatch Stopwatch provides a way to profile code. Methods
StopwatchEvent start(string $name, string
stopSection(string $id) Stops the last started section. The id parameter is used to retrieve
openSection(string|null $id = null) Creates a new section or re-opens an existing section.
StopwatchPeriod[] getPeriods()
Page 2 of 4