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 6e49cf0 commit 5662938Copy full SHA for 5662938
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.3f", elapsed * 1000) << "ms\t";
+ // Round to the nearest 100th of a millisecond
159
+ llvm::errs() << llvm::format("%0.2f", round(elapsed * 100000) / 100) << "ms\t";
160
Function.getLoc().print(llvm::errs(), ctx.SourceMgr);
161
162
if (auto *AFD = Function.getAbstractFunctionDecl()) {
0 commit comments