Skip to content

Commit 24c0484

Browse files
committed
Show times as milliseconds
1 parent e647453 commit 24c0484

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Debug/AppCollector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function getContents() : string
106106
}
107107
\ob_start(); ?>
108108
<p><strong>Started at:</strong> <?= \date('r', (int) $this->startTime) ?></p>
109-
<p><strong>Runtime:</strong> <?= \round($this->endTime - $this->startTime, 6) ?> seconds
109+
<p><strong>Runtime:</strong> <?= Debugger::roundSecondsToMilliseconds($this->endTime - $this->startTime) ?> ms
110110
</p>
111111
<p>
112112
<strong>Memory:</strong> <?=

src/Debug/ViewsCollector.php

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

1212
use Framework\Debug\Collector;
13+
use Framework\Debug\Debugger;
1314
use Framework\MVC\View;
1415

1516
/**
@@ -86,7 +87,7 @@ protected function renderRenderedViews() : string
8687
<th>#</th>
8788
<th>File</th>
8889
<th>Type</th>
89-
<th>Time to Render</th>
90+
<th title="Milliseconds">Time to Render</th>
9091
</tr>
9192
</thead>
9293
<tbody>
@@ -95,7 +96,7 @@ protected function renderRenderedViews() : string
9596
<td><?= $index + 1 ?></td>
9697
<td><?= \htmlentities($item['file']) ?></td>
9798
<td><?= \htmlentities($item['type']) ?></td>
98-
<td><?= \round($item['end'] - $item['start'], 6) ?></td>
99+
<td><?= Debugger::roundSecondsToMilliseconds($item['end'] - $item['start']) ?></td>
99100
</tr>
100101
<?php endforeach ?>
101102
</tbody>

0 commit comments

Comments
 (0)