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.
2 parents 954f083 + d14a49b commit e5f7ef9Copy full SHA for e5f7ef9
lib/Sema/TypeCheckStmt.cpp
@@ -155,7 +155,8 @@ namespace {
155
ASTContext &ctx = Function.getAsDeclContext()->getASTContext();
156
157
if (ShouldDump) {
158
- llvm::errs() << llvm::format("%0.1f", elapsed * 1000) << "ms\t";
+ // Round up to the nearest 100th of a millisecond.
159
+ llvm::errs() << llvm::format("%0.2f", ceil(elapsed * 100000) / 100) << "ms\t";
160
Function.getLoc().print(llvm::errs(), ctx.SourceMgr);
161
162
if (auto *AFD = Function.getAbstractFunctionDecl()) {
0 commit comments