From 01c5e98f1e6f83a4eb705c5a32944a87b6cb2e9f Mon Sep 17 00:00:00 2001 From: John Kary Date: Sun, 16 Oct 2022 21:41:52 -0500 Subject: [PATCH] Always display slow execution time with 3 decimal places --- src/SpeedTrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SpeedTrap.php b/src/SpeedTrap.php index 3c0e162..9b84d2c 100644 --- a/src/SpeedTrap.php +++ b/src/SpeedTrap.php @@ -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); } }