mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Fixed build problem Github Actions
This commit is contained in:
parent
5f94f584dc
commit
bce65fe754
6
peglib.h
6
peglib.h
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user