我不知道在哪里好像看到过,是不是最小只有57ms啊。

解决方案 »

  1.   

    The GetSystemTimeAdjustment and SetSystemTimeAdjustment functions support algorithms that want to synchronize the time-of-day clock, reported by GetSystemTime and GetLocalTime, with another time source using a periodic time adjustment applied at each clock interrupt.When periodic time adjustment is in effect, the system adds an adjusting value to the time-of-day clock at a periodic interval, at each clock interrupt. The GetSystemTimeAdjustment function lets a caller determine whether periodic time adjustment is enabled, and if it is, obtain the amount of each adjustment and the time between adjustments. The SetSystemTimeAdjustment function lets a caller enable or disable periodic time adjustment, and set the value of the adjusting increment.
    原文这样写的,调用GetSystemTimeAdjustment函数可以决定是否加入一个周期调整值为每个系统时钟中断,也就是说约等于一个系统时钟值。
      

  2.   

    可以用QueryPerformanceCounter来作采样频率,每个一段时间检验计数器的值,符合要求采样,否则等待
      

  3.   

    to li_wen_2001用什么函数等待,能够达到1MS的精度?另外你的查询周期是多少,100NS?系统会不会被忙死?
      

  4.   

    用多媒体计时器函数 timeSetEvent 。程序开始时需要调用timeBeginPeriod,程序结束前调用timeEndPeriod。用timeSetEvent创建的计时器,需要用timeKillEvent删除。