From 19bd4ca8a530d2ec96e0ccbc80b98f40cfe7bacc Mon Sep 17 00:00:00 2001 From: Jules P?nuchot Date: Wed, 15 Nov 2023 14:49:33 +0100 Subject: [PATCH] switch to steady_clock instead of high_resolution_clock for compiler execution time measurement --- compiler-launcher/compiler-launcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-launcher/compiler-launcher.cpp b/compiler-launcher/compiler-launcher.cpp index 5f2956f..f106ff5 100644 --- a/compiler-launcher/compiler-launcher.cpp +++ b/compiler-launcher/compiler-launcher.cpp @@ -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);