calculate per-core cpu usage with /proc/stat on linux
build:
$ mkdir build; cd build
$ cmake
$ ./cpusage
change sampling time by 't' option
$ ./cpusage -t 500
change iterations by 's' option
$ ./cpusage -s 10
calculate per-core cpu usage with /proc/stat on linux
build:
$ mkdir build; cd build
$ cmake
$ ./cpusage
change sampling time by 't' option
$ ./cpusage -t 500
change iterations by 's' option
$ ./cpusage -s 10