Skip to content

Commit a58e564

Browse files
committed
Mark time with milliseconds
1 parent 924269f commit a58e564

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Debug/ValidationCollector.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace Framework\Validation\Debug;
1111

1212
use Framework\Debug\Collector;
13+
use Framework\Debug\Debugger;
1314
use Framework\Validation\Validation;
1415
use ReflectionMethod;
1516

@@ -94,7 +95,7 @@ protected function renderValidations() : string
9495
<th>Errors Count</th>
9596
<th>Error Field</th>
9697
<th>Error Message</th>
97-
<th title="Seconds">Time</th>
98+
<th title="Milliseconds">Time</th>
9899
</tr>
99100
</thead>
100101
<tbody>
@@ -114,7 +115,7 @@ protected function renderValidations() : string
114115
<td rowspan="<?= $count ?>"><?= $count ?></td>
115116
<td><?= $errors[0]['field'] ?? '' ?></td>
116117
<td><?= $errors[0]['error'] ?? '' ?></td>
117-
<td rowspan="<?= $count ?>"><?= \round($item['end'] - $item['start'], 6) ?></td>
118+
<td rowspan="<?= $count ?>"><?= Debugger::roundSecondsToMilliseconds($item['end'] - $item['start']) ?></td>
118119
</tr>
119120
<?php for ($i = 1; $i < $count; $i++): ?>
120121
<tr>

0 commit comments

Comments
 (0)