Reputation: 3307
I would like to migrate boost::timer::cpu_timer in my code to standard library solution. I only found std::chrono::steady_clock but it doesn't offer the same functionality as boost variant. What I basically need is wall and system time output, e.g.
5.713010s wall, 5.709637s user + 0.000000s system = 5.709637s CPU (99.9%)
Is there anything like this in standard library ?
Upvotes: 0
Views: 722
Reputation: 62573
No, there is nothing in C++ standard library which would measure system and user time. You can only get wall time with std::chrono::
functions (of which steady_clock
would be the most approriate to measure time intervals).
Upvotes: 2