Measure cpu time
Ali Çehreli
acehreli at yahoo.com
Fri May 7 16:16:53 UTC 2021
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
More information about the Digitalmars-d-learn
mailing list