![]() |
Springhead
An open source physics engine for virtual reality, haptics and motion generation.
|
CPUクロックを利用した正確なタイマー 東大舘研の梶本さんが作られた PreciseTimer.h を改変しました.
#include <WBPreciseTimer.h>
Public メソッド | |
void | Init (int period=100) |
カウンタの初期化 | |
void | WaitUS (int time) |
μs単位で待つ | |
int | CountUS () |
前回からの経過時間をμs単位で計測 | |
void | CountAndWaitUS (int time) |
前回からの経過時間をμs単位で計測し,全体としてus単位で待つ(一定ループ生成用) | |
DWORD | Start () |
計測開始 | |
DWORD | Stop () |
計測停止 | |
DWORD | Clear () |
クリア | |
Static Public メソッド | |
static DWORD | CPUFrequency () |
|
inlinestatic |
< CPUの周波数を返す.