From 158e3adbf8a82e0a7be6fd693198fd6fb0adbbc7 Mon Sep 17 00:00:00 2001 From: Tristan Maindron Date: Fri, 18 Nov 2016 10:53:38 +0100 Subject: [PATCH] Fixed round for execution time This changes the rounding of the execution time provided when debug mode is enabled. Now the precision should be of 1ms instead of 100ms. --- Request/Executor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Request/Executor.php b/Request/Executor.php index e2fdfcdcf..b77de397b 100644 --- a/Request/Executor.php +++ b/Request/Executor.php @@ -158,7 +158,7 @@ public function execute(array $data, array $context = [], $schemaName = null) if ($this->hasDebugInfo()) { $executionResult->extensions['debug'] = [ - 'executionTime' => sprintf('%d ms', round(microtime(true) - $startTime, 1) * 1000), + 'executionTime' => sprintf('%d ms', round(microtime(true) - $startTime, 3) * 1000), 'memoryUsage' => sprintf('%.2F MiB', (memory_get_usage(true) - $startMemoryUsage) / 1024 / 1024), ]; }