On 5/7/21 1:25 AM, Andre Pany wrote:

> get the cpu time

For the sake of completeness, that kind of functionality is provided by operating systems as well. For example, on Linux, it is common to run the program through 'time' to get how much wall clock advanced, how much time was spent actually executing code on the CPU, and how much time was spent by the OS itself:

$ time my-program my-arguments ...

Check out 'man time' to see its command line switches. ('time --help' fails to execute '--help' :) )

Ali

Reply via email to