Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I measure time less than 1 millisecond?

Status
Not open for further replies.

RiceW

Programmer
Jan 31, 2003
8
US
I need to time an event that usually takes less than one millisecond. Is there a way to do so?
 
Yep. Investigate the QueryPerformanceCounter and QueryPerformanceFrequency API calls. But bear in mind that Windows is not a real time operating system, so your timing is never going to be completely accurate.
 
It's not likely that you can do this without additional hardware. The standard PC clock is only accurate to 7ms, IIRC.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top