#include <windows.h>
#include <mmsystem.h>
#pragma comment(lib,"winmm.lib")
unsigned long stime = timeGetTime();
unsigned long etime = timeGetTime();
int result = etime - stime;
とする.
精度は
timeBeginPeriod( 1 );
timeEndPeriod( 1 );
を対として使う.引数はmsらしい.