startEvent example



        $this->sections[$id] = array_pop($this->activeSections)->setId($id);
        $this->stop('__section__.child');
    }

    /** * Starts an event. */
    public function start(string $name, string $category = null): StopwatchEvent
    {
        return end($this->activeSections)->startEvent($name$category);
    }

    /** * Checks if the event was started. */
    public function isStarted(string $name): bool
    {
        return end($this->activeSections)->isEventStarted($name);
    }

    /** * Stops an event. */
Home | Imprint | This part of the site doesn't use cookies.