主要是为了满足实时视频的要求,
如果一秒处理30帧的话,通过什么方法可以得到符合精度要求的处理时间。
谢谢!

解决方案 »

  1.   

    GetTickCount();
    就可以计算某个时刻的时间了,两个时间一减就是处理时间
      

  2.   

    GetTickCount可以如果你想更准可以利用586指令 rdtsc 它得到的是过了多少个时钟周期!
      

  3.   

    GetTickCount  我知道的大多方法都是这样的
      

  4.   

    Return Values
    The return value is the number of milliseconds that have elapsed since the system was started. Res
    The elapsed time is stored as a DWORD value. Therefore, the time will wrap around to zero if the system is run continuously for 49.7 days. If you need a higher resolution timer, use a multimedia timer or a high-resolution timer. Windows NT/2000: To obtain the time elapsed since the computer was started, retrieve the System Up Time counter in the performance data in the registry key HKEY_PERFORMANCE_DATA. The value returned is an 8-byte value. For more information, see Performance