Timer Variations

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I have Visual Studio 6.

When I set a timer using SetTimer( ) in MFC for a timegap of 1000msec then in 60 seconds it shows a timegap of 2 seconds i.e. it only shows 58 seconds past

Why does this happed and how can I get absolutly accurate time

Thanks

Vikram.
 
When I set a timer using SetTimer( ) in MFC for a timegap of 1000msec then in 60 seconds it shows a timegap of 2 seconds i.e. it only shows 58 seconds past.
Vikram,

You need to explain what you're doing in a little more detail.

WM_TIMER messages are not accurate, they are low-priority messages
generated when your application has nothing else to do.

Knowing this and depending on your application requirements, they may
still be applicable to you. If they're not, you could use the
multimedia timer facilities (see timeSetEvent).

Dave
 
Back
Top