Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
現在実行中のプロセスの瞬間的な CPU 負荷をプログラムで(c/c++) 知る必要があります。Win32 API は多くの低レベル API を提供しますが、実行中の c/c++ プログラムの現在の CPU 負荷を与えるものを見つけることができません。
問題は、現在のプロセスが使用している CPU 負荷の割合をプログラムで知る方法です。