How to Measure CPU and Memory Usage from Inside a C++ Process on Windows and Linux | CodeTrail