samedi 20 avril 2019

Receiving real/user/system times within main logic of C++

Is there a UNIX time equivalent in C++, which gives real, user and system time of execution preferably within main? Or are there non-trivial ways to use chrono, etc to achieve the same functionality?

Aiming to walk away from redirection operator coupled with executable and trying to embed time logic within main itself. time a.out 2> log.txt

Aucun commentaire:

Enregistrer un commentaire