Skip to content

Commit 1b2df43

Browse files
committed
Show time as milliseconds
1 parent 630b158 commit 1b2df43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Debug/LogCollector.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace Framework\Log\Debug;
1111

1212
use Framework\Debug\Collector;
13+
use Framework\Debug\Debugger;
1314
use Framework\Log\Logger;
1415
use Framework\Log\LogLevel;
1516

@@ -105,7 +106,7 @@ protected function renderLogs() : string
105106
<th colspan="2">Level</th>
106107
<th>Message</th>
107108
<th>Written</th>
108-
<th title="Seconds">Time to Log</th>
109+
<th title="Milliseconds">Time to Log</th>
109110
</tr>
110111
</thead>
111112
<tbody>
@@ -121,7 +122,7 @@ protected function renderLogs() : string
121122
<pre><code class="language-log"><?= \htmlentities($data['message']) ?></code></pre>
122123
</td>
123124
<td><?= $data['written'] ? 'Yes' : 'No' ?></td>
124-
<td><?= \round($data['end'] - $data['start'], 6) ?></td>
125+
<td><?= Debugger::roundSecondsToMilliseconds($data['end'] - $data['start']) ?></td>
125126
</tr>
126127
<?php endforeach ?>
127128
</tbody>

0 commit comments

Comments
 (0)