Stopwatch

Stopwatch

class Stopwatch

Stopwatch provides a way to profile code.

Methods

__construct()
Section[] getSections()
openSection(string|null $id = null)

Creates a new section or re-opens an existing section.

stopSection(string $id)

Stops the last started section.

StopwatchEvent start(string $name, string $category = null)

Starts an event.