File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ microtime by yourself. Instead, use the simple
30
30
$stopwatch = new Stopwatch();
31
31
// starts event named 'eventName'
32
32
$stopwatch->start('eventName');
33
- // ... some code goes here
33
+ : // ... some code goes here
34
34
$event = $stopwatch->stop('eventName');
35
35
36
36
The :class: `Symfony\\ Component\\ Stopwatch\\ StopwatchEvent ` object can be retrieved
@@ -51,13 +51,12 @@ Symfony Profiler tool uses categories to nicely color-code different events.
51
51
Usage in symfony
52
52
----------------
53
53
54
- In a Controller, do:
54
+ In a Controller, do::
55
55
56
56
$stopwatch = $this->get('debug.stopwatch');
57
57
$stopwatch->start('anEvent');
58
58
59
- Or inject `Symfony\Component\Stopwatch\Stopwatch ` by autowiring.
60
-
59
+ Or inject :class: `Symfony\\ Component\\ Stopwatch\\ Stopwatch ` by autowiring.
61
60
Thereafter this timing can be seen in the profiler.
62
61
63
62
Periods
You can’t perform that action at this time.
0 commit comments