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();
}
elapsed = mstime()-start_time;
if (elapsed > 500) printf("%.2f seconds\n",
(double)elapsed/1000);
if (elapsed >= 500) {
printf("(%.2fs)\n",(double)elapsed/1000);
}
}
}
/* Free the argument vector */