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.
Cプログラムが実行されている合計時間と、特定の関数内で費やされた時間の量をプログラムで取得する方法はありますか? これら 2 つの値を別の関数の引数として使用したいので、コードでこれを行う必要があります。私は Linux を使用しているので、gprof または perf を使用してこれを行うことはできますか?