Skip to content

Typo: non-existent StopWatch method lapse #11938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions profiler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ which provides utilities to profile code and displays the results on the

When using :ref:`autowiring <services-autowire>`, type-hint any argument with
the :class:`Symfony\\Component\\Stopwatch\\Stopwatch` class and Symfony will
inject the Stopwatch service. Then, use the ``start()``, ``lapse()`` and
inject the Stopwatch service. Then, use the ``start()``, ``lap()`` and
``stop()`` methods to measure time::

// a user signs up and the timer starts...
$stopwatch->start('user-sign-up');

// ...do things to sign up the user...
$stopwatch->lapse('user-sign-up');
$stopwatch->lap('user-sign-up');

// ...the sign up process is finished
$stopwatch->stop('user-sign-up');
Expand Down