File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 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
3030 $stopwatch = new Stopwatch();
3131 // starts event named 'eventName'
3232 $stopwatch->start('eventName');
33- // ... some code goes here
33+ : // ... some code goes here
3434 $event = $stopwatch->stop('eventName');
3535
3636The :class: `Symfony\\ Component\\ Stopwatch\\ StopwatchEvent ` object can be retrieved
@@ -51,13 +51,12 @@ Symfony Profiler tool uses categories to nicely color-code different events.
5151Usage in symfony
5252----------------
5353
54- In a Controller, do:
54+ In a Controller, do::
5555
5656 $stopwatch = $this->get('debug.stopwatch');
5757 $stopwatch->start('anEvent');
5858
59- Or inject `Symfony\Component\Stopwatch\Stopwatch ` by autowiring.
60-
59+ Or inject :class: `Symfony\\ Component\\ Stopwatch\\ Stopwatch ` by autowiring.
6160Thereafter this timing can be seen in the profiler.
6261
6362Periods
You can’t perform that action at this time.
0 commit comments