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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

High Resolution Callback Timer (microseconds)

Status
Not open for further replies.

MichaelLEvans

Programmer
Mar 9, 2005
2
US
Anyone,

I'm looking for a way to setup a callback function in our VC++ .net 2003 7.1 console application using a higher resolution timer. The multimedia timer is too low resolution at 1 millisecond. We need microsecond resolution to guarantee an exact update rate (60 or 70 Hz for example.)

We use the Performance Counter to get microsecond resolution when measuring elapsed time, but there doesn't appear to be any tools for generating callbacks or interrupts, etc. at that higher resolution.

Any ideas would be greatly appreciated. Thanks,

Mike
 
What are you trying to do - update a screen at exactly the refresh frequency?

Because your approach is very poor if this is what you're trying to do.

Getting anything like that kind of precision out of a desktop operating system with all those programs and services running will be pretty close to impossible.

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top