Skip to content

Commit

Permalink
switch to steady_clock instead of high_resolution_clock for compiler …
Browse files Browse the repository at this point in the history
…execution time measurement
  • Loading branch information
JPenuchot committed Nov 15, 2023
1 parent 204b806 commit 19bd4ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-launcher/compiler-launcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ inline int get_timetrace_file(std::filesystem::path const time_trace_file_dest,

// Run program and measure CPU time

using exec_clock_t = ch::high_resolution_clock;
using exec_clock_t = ch::steady_clock;

exec_clock_t::time_point const exec_t0 = exec_clock_t::now();
int const exit_code = boost::process::system(command_args);
Expand Down

0 comments on commit 19bd4ca

Please sign in to comment.