dendibakh / perf-book

The book "Performance Analysis and Tuning on Modern CPU"
https://book.easyperf.net/perf_book
Creative Commons Zero v1.0 Universal
2.12k stars 156 forks source link

Simplify code example using `std::chrono`. #22

Closed cf-natali closed 1 year ago

cf-natali commented 1 year ago

It's a bit simpler and cleaner to work with std::chrono::time_point and only convert to nanoseconds at the end.

dendibakh commented 1 year ago

Thank you!