Skip to content

Commit

Permalink
Always display slow execution time with 3 decimal places
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkary committed Oct 17, 2022
1 parent 4a37c70 commit 01c5e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SpeedTrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ protected function renderBody(): void
$time = array_shift($slowTests);
$seconds = $time / 1000;

echo sprintf(" %s) %ss to run %s\n", $i, $seconds, $label);
echo sprintf(" %s) %.3fs to run %s\n", $i, $seconds, $label);
}
}

Expand Down

0 comments on commit 01c5e98

Please sign in to comment.