Section
class Section
Stopwatch section.
Methods
__construct(float|null $origin = null)
Constructor.
string
getId()
No description
startEvent(string $name, string $category)
Starts an event.
bool
isEventStarted(string $name)
Checks if the event was started.
stopEvent(string $name)
Stops an event.
lap(string $name)
Stops then restarts an event.
getEvent(string $name)
Returns a specific event by name.
getEvents()
Returns the events from this section.
Details
at line line 46
__construct(float|null $origin = null)
Constructor.
at line line 58
Section|null
get(string $id)
Returns the child section.
at line line 74
Section
open(string|null $id)
Creates or re-opens a child section.
at line line 86
string
getId()
at line line 98
Section
setId(string $id)
Sets the session identifier.
at line line 113
StopwatchEvent
startEvent(string $name, string $category)
Starts an event.
at line line 129
bool
isEventStarted(string $name)
Checks if the event was started.
at line line 143
StopwatchEvent
stopEvent(string $name)
Stops an event.
at line line 161
StopwatchEvent
lap(string $name)
Stops then restarts an event.
at line line 175
StopwatchEvent
getEvent(string $name)
Returns a specific event by name.
at line line 189
StopwatchEvent[]
getEvents()
Returns the events from this section.