class Section
Stopwatch section.
__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. |
Constructor.
Returns the child section.
Creates or re-opens a child section.
Sets the session identifier.
Starts an event.
Checks if the event was started
Stops an event.
Stops then restarts an event.
Returns a specific event by name
Returns the events from this section.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Stopwatch/Section.html