Fixed build problem Github Actions

This commit is contained in:
yhirose 2022-06-10 20:22:24 -04:00
parent 5f94f584dc
commit bce65fe754

View File

@ -4595,11 +4595,11 @@ inline void enable_profiling(parser &parser, std::ostream &os) {
if (index == 0) { if (index == 0) {
auto end = std::chrono::steady_clock::now(); auto end = std::chrono::steady_clock::now();
auto µs = std::chrono::duration_cast<std::chrono::microseconds>( auto nano = std::chrono::duration_cast<std::chrono::microseconds>(
end - stats.start) end - stats.start)
.count(); .count();
auto s = µs / 1000000.0; auto sec = nano / 1000000.0;
os << "duration: " << s << "s (" << µs << "µs)" << std::endl << std::endl; os << "duration: " << sec << "s (" << nano << "µs)" << std::endl << std::endl;
char buff[BUFSIZ]; char buff[BUFSIZ];
size_t total_success = 0; size_t total_success = 0;