Skip to content

Commit

Permalink
Show time as milliseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Jan 5, 2025
1 parent f0d1628 commit 7b4c7d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Debug/AutoloadCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function getContents() : string
<tr>
<th>#</th>
<th>File</th>
<th title="Seconds">Time</th>
<th title="Milliseconds">Time</th>
</tr>
</thead>
<tbody>
Expand All @@ -73,7 +73,7 @@ public function getContents() : string
: '' ?>>
<td><?= $index + 1 ?></td>
<td><?= \htmlentities($file) ?></td>
<td><?= $data ? \round($data['end'] - $data['start'], 6) : '' ?></td>
<td><?= $data ? Debugger::roundSecondsToMilliseconds($data['end'] - $data['start']) : '' ?></td>
</tr>
<?php endforeach ?>
</tbody>
Expand All @@ -97,7 +97,7 @@ public function getContents() : string
<th>Type</th>
<th>Declaration</th>
<th title="Loaded with the current Autoloader">Loaded</th>
<th title="Seconds">Time</th>
<th title="Milliseconds">Time</th>
</tr>
</thead>
<tbody>
Expand All @@ -123,7 +123,7 @@ public function getContents() : string
if ($data && isset($data['loaded'])) {
echo $data['loaded'] ? 'Yes' : 'No';
} ?></td>
<td><?= $data ? \round($data['end'] - $data['start'], 6) : '' ?></td>
<td><?= $data ? Debugger::roundSecondsToMilliseconds($data['end'] - $data['start']) : '' ?></td>
</tr>
<?php endforeach ?>
</tbody>
Expand Down

0 comments on commit 7b4c7d7

Please sign in to comment.