Skip to content

Commit

Permalink
Merge pull request #77 from OwlyCode/master
Browse files Browse the repository at this point in the history
Fixed round for execution time
  • Loading branch information
mcg-web authored Nov 18, 2016
2 parents bc3395d + 158e3ad commit 14b7219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Request/Executor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
];
}
Expand Down

0 comments on commit 14b7219

Please sign in to comment.