File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -201,9 +201,8 @@ int Compilation::ExecuteCommand(const Command &C,
201201 // the global static timer list which, in principle, could be cleared without
202202 // us knowing about it.
203203 llvm::TimeRecord StartTime;
204- if (getArgs ().hasArg (options::OPT_time)) {
204+ if (getArgs ().hasArg (options::OPT_time))
205205 StartTime = llvm::TimeRecord::getCurrentTime (/* Start=*/ true );
206- }
207206
208207 std::string Error;
209208 bool ExecutionFailed;
@@ -216,8 +215,8 @@ int Compilation::ExecuteCommand(const Command &C,
216215 Time -= StartTime;
217216 llvm::StringRef Name = llvm::sys::path::filename (C.getExecutable ());
218217 llvm::errs () << " # " << Name << " "
219- << llvm::format (" %0.5f " , Time.getUserTime ()) << " "
220- << llvm::format (" %0.5f " , Time.getSystemTime ()) << " \n " ;
218+ << llvm::format (" %0.2f " , Time.getUserTime ()) << " "
219+ << llvm::format (" %0.2f " , Time.getSystemTime ()) << " \n " ;
221220 }
222221
223222 if (!Error.empty ()) {
You can’t perform that action at this time.
0 commit comments