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.
ダイアログ ボックスの作成に必要な時間を測定する方法は? 最初と最後に actor で実行しますか? それは正しいでしょうか?
コンストラクター内のコードのみ、つまり割り当てと親クラスの初期化を含むチェーン全体の時間を計測するかどうかによって異なります。
可能な継承チェーンを含むすべてが必要な場合は、クラスを作成するときにそれを行う必要があります。
clock_t start = clock(); CMyDialog *myDlg = new CMyDialog; clock_t end = clock();