Welcome![Sign In][Sign Up]
Location:
Downloads WEB Code
Title: CPU 测速(MHz)和高精度延时(微秒级) Download
  • Category:
  • Document
  • Tags:
  • [Text]
  • File Size:
  • 1.18kb
  • Update:
  • 2008-10-13
  • Downloads:
  • 0 Times
  • Uploaded by:
  • n_am
 Description: one. High-precision delay, the CPU speed is the basis of Windows within a very high accuracy of the timer, the microsecond precision, but in the system timer different frequencies, the frequency and hardware and the operating system are likely. Using API function can be QueryPerformanceFrequency the timing The frequency. Use QueryPerformanceCounter API function can be the current timer value. According to the delay time and the frequency of the timer, you could calculate the time to delay timer after a few cycles. The circle with QueryPerformanceCounter repeatedly read out the timer value, until after a specified number of cycles end the cycle again, it reached a high precision delay purposes. High-precision delay the procedure parameters : 2 microsecond. Gun utilize RDTSC instruction can
 Downloaders recently: [More information of uploader n_am]
File list (Check if you may need any files):

CodeBus www.codebus.net