bash-3.1$ cat query.c #include #include #define SAMPLE_MAX 10 int main() { printf("カウンタ実装テスト\n"); __int64 hindo; if( QueryPerformanceFrequency( (LARGE_INTEGER *)&hindo ) == TRUE ) { __int64 count; // __int64 def_count; // __int64 buff[SAMPLE_MAX], rawcnt[SAMPLE_MAX], loops[SAMPLE_MAX]; // int i, j; printf("***1.パフォーマンスカウンタの実装を確認しました。***\n"); printf(" パフォーマンスカウンタのテストを行います。\n"); printf("頻度 %lld / sec\n", hindo ); // ループで時間間隔を計測してみる printf(" ループで精度を計測してみる\n"); QueryPerformanceCounter( (LARGE_INTEGER *)&def_count ); for( i=0; i