Skip to content

Commit 14b7219

Browse files
authored
Merge pull request #77 from OwlyCode/master
Fixed round for execution time
2 parents bc3395d + 158e3ad commit 14b7219

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)