class Section
Stopwatch section.
Methods
__construct(float|null $origin = null) Constructor. | ||
Section|null | get(string $id) Returns the child section. | |
Section | open(string|null $id) Creates or re-opens a child section. | |
string | getId() | |
Section | setId(string $id) Sets the session identifier. | |
StopwatchEvent | startEvent(string $name, string $category) Starts an event. | |
bool | isEventStarted(string $name) Checks if the event was started. | |
StopwatchEvent | stopEvent(string $name) Stops an event. | |
StopwatchEvent | lap(string $name) Stops then restarts an event. | |
StopwatchEvent | getEvent(string $name) Returns a specific event by name. | |
StopwatchEvent[] | getEvents() Returns the events from this section. |
Details
__construct(float|null $origin = null)
Constructor.
Section|null get(string $id)
Returns the child section.
Section open(string|null $id)
Creates or re-opens a child section.
string getId()
Section setId(string $id)
Sets the session identifier.
StopwatchEvent startEvent(string $name, string $category)
Starts an event.
bool isEventStarted(string $name)
Checks if the event was started.
StopwatchEvent stopEvent(string $name)
Stops an event.
StopwatchEvent lap(string $name)
Stops then restarts an event.
StopwatchEvent getEvent(string $name)
Returns a specific event by name.
StopwatchEvent[] getEvents()
Returns the events from this section.
Please login to continue.