Skip to content

Commit 158e3ad

Browse files
authored
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.
1 parent bc3395d commit 158e3ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Request/Executor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function execute(array $data, array $context = [], $schemaName = null)
158158

159159
if ($this->hasDebugInfo()) {
160160
$executionResult->extensions['debug'] = [
161-
'executionTime' => sprintf('%d ms', round(microtime(true) - $startTime, 1) * 1000),
161+
'executionTime' => sprintf('%d ms', round(microtime(true) - $startTime, 3) * 1000),
162162
'memoryUsage' => sprintf('%.2F MiB', (memory_get_usage(true) - $startMemoryUsage) / 1024 / 1024),
163163
];
164164
}

0 commit comments

Comments
 (0)