You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Application-Web/vendor/symfony/stopwatch
Vivien DUFOUR 08c75d025d
wip
1 year ago
..
CHANGELOG.md wip 1 year ago
LICENSE wip 1 year ago
README.md wip 1 year ago
Section.php wip 1 year ago
Stopwatch.php wip 1 year ago
StopwatchEvent.php wip 1 year ago
StopwatchPeriod.php wip 1 year ago
composer.json wip 1 year ago

README.md

Stopwatch Component

The Stopwatch component provides a way to profile code.

Getting Started

$ composer require symfony/stopwatch
use Symfony\Component\Stopwatch\Stopwatch;

$stopwatch = new Stopwatch();

// optionally group events into sections (e.g. phases of the execution)
$stopwatch->openSection();

// starts event named 'eventName'
$stopwatch->start('eventName');

// ... run your code here

// optionally, start a new "lap" time
$stopwatch->lap('foo');

// ... run your code here

$event = $stopwatch->stop('eventName');

$stopwatch->stopSection('phase_1');

Resources