We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1220d8e commit 7644bd0Copy full SHA for 7644bd0
src/Command/InceptionResult.php
@@ -103,9 +103,15 @@ public function getEditorModeInsteadOfFile(): ?string
103
public function handleReturn(int $exitCode, ?int $peakMemoryUsageBytes, float $analysisStartTime): int
104
{
105
if ($this->getErrorOutput()->isVerbose()) {
106
+ $elapsedTime = round(microtime(true) - $analysisStartTime, 2);
107
+ if ($elapsedTime < 10) {
108
+ $elapsedTimeString = sprintf('%.2f seconds', $elapsedTime);
109
+ } else {
110
+ $elapsedTimeString = $this->formatDuration((int) $elapsedTime);
111
+ }
112
$this->getErrorOutput()->writeLineFormatted(sprintf(
113
'Elapsed time: %s',
- $this->formatDuration((int) round(microtime(true) - $analysisStartTime)),
114
+ $elapsedTimeString,
115
));
116
}
117
0 commit comments