コードセグメントのタイミングを常に必要とするため、以下は抽象的なタイマクラスであり、2つのクラスを含む.1つはTimerクラスであり、タイミング操作に用いられ、タイミングが必要なコードセグメントの開始でStart()を呼び出してタイミングを開始し、コードセグメントの終了でStop()停止計を呼び出すと、Elapse()はコードセグメントの消費時間を取得することができる.もう1つは、TimerFactoryクラスがTimerの管理呼び出しに使用するGetTimer()で、タイマの名前をGetTimer()パラメータで取得できます.
#include
#include
#include