Skip to content

Commit 36ec56d

Browse files
committedJan 6, 2025··
Show times to load services in milliseconds
1 parent 24c0484 commit 36ec56d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/Debug/AppCollector.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ protected function renderLoadedServices() : string
138138
<tr>
139139
<th>Service</th>
140140
<th>Instances</th>
141-
<th title="Seconds">Time to Load</th>
141+
<th title="Milliseconds">Time to Load</th>
142142
</tr>
143143
</thead>
144144
<tbody>
@@ -147,12 +147,12 @@ protected function renderLoadedServices() : string
147147
<tr>
148148
<td rowspan="<?= $count ?>"><?= $service ?></td>
149149
<td><?= $data[0]['name'] ?></td>
150-
<td><?= \round($data[0]['end'] - $data[0]['start'], 6) ?></td>
150+
<td><?= Debugger::roundSecondsToMilliseconds($data[0]['end'] - $data[0]['start']) ?></td>
151151
</tr>
152152
<?php for ($i = 1; $i < $count; $i++): ?>
153153
<tr>
154154
<td><?= $data[$i]['name'] ?></td>
155-
<td><?= \round($data[$i]['end'] - $data[$i]['start'], 6) ?></td>
155+
<td><?= Debugger::roundSecondsToMilliseconds($data[$i]['end'] - $data[$i]['start']) ?></td>
156156
</tr>
157157
<?php endfor ?>
158158
<?php endforeach ?>

0 commit comments

Comments
 (0)
Please sign in to comment.