From bce65fe75435574963a09c145d723b259665a6ce Mon Sep 17 00:00:00 2001 From: yhirose Date: Fri, 10 Jun 2022 20:22:24 -0400 Subject: [PATCH] Fixed build problem Github Actions --- peglib.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/peglib.h b/peglib.h index b690b32..5f98161 100644 --- a/peglib.h +++ b/peglib.h @@ -4595,11 +4595,11 @@ inline void enable_profiling(parser &parser, std::ostream &os) { if (index == 0) { auto end = std::chrono::steady_clock::now(); - auto µs = std::chrono::duration_cast( + auto nano = std::chrono::duration_cast( end - stats.start) .count(); - auto s = µs / 1000000.0; - os << "duration: " << s << "s (" << µs << "µs)" << std::endl << std::endl; + auto sec = nano / 1000000.0; + os << "duration: " << sec << "s (" << nano << "µs)" << std::endl << std::endl; char buff[BUFSIZ]; size_t total_success = 0;