Put duration in parenthesis

This commit is contained in:
Pieter Noordhuis 2010-11-03 17:07:10 +01:00
parent cfcd5d6d43
commit 339b9dc2d2

View File

@ -432,8 +432,9 @@ static void repl() {
cliPrintContextErrorAndExit(); cliPrintContextErrorAndExit();
} }
elapsed = mstime()-start_time; elapsed = mstime()-start_time;
if (elapsed > 500) printf("%.2f seconds\n", if (elapsed >= 500) {
(double)elapsed/1000); printf("(%.2fs)\n",(double)elapsed/1000);
}
} }
} }
/* Free the argument vector */ /* Free the argument vector */