Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ac484f4

Browse filesBrowse files
committed
Made suggested tweaks
1 parent 2ca9bd5 commit ac484f4
Copy full SHA for ac484f4

File tree

Expand file treeCollapse file tree

1 file changed

+8
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-1
lines changed

‎components/stopwatch.rst

Copy file name to clipboardExpand all lines: components/stopwatch.rst
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@ microtime by yourself. Instead, use the simple
3131
// ... some code goes here
3232
$event = $stopwatch->stop('eventName');
3333

34-
The :class:`Symfony\\Component\\Stopwatch\StopwatchEvent` object can be retrieved from :method:`Symfony\\Component\\Stopwatch\\Stopwatch::start`, :method:`Symfony\\Component\\Stopwatch\\Stopwatch::stop`, :method:`Symfony\\Component\\Stopwatch\\Stopwatch::lap` and :method:`Symfony\\Component\\Stopwatch\\Stopwatch::getEvent`
34+
.. versionadded:: 2.5
35+
The ``getEvent()`` method was introduced
36+
37+
The :class:`Symfony\\Component\\Stopwatch\StopwatchEvent` object can be retrieved from the
38+
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::start`,
39+
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::stop`,
40+
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::lap` and
41+
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::getEvent` methods.
3542

3643
You can also provide a category name to an event::
3744

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.