Why do Windows timing functions have poor resolution and accuracy?

  • Thread starter Thread starter Dissident Dan
  • Start date Start date
  • Tags Tags
    Functions Windows
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
Dissident Dan
Messages
244
Reaction score
1
One would think that counting time would be one of the simplest functions that a computer could do, given that computers generally operate based on fixed frequencies, which I believe are generated by crystals.

However, the windows time functions that I know are horrible. Firstly, they have horrible resolution, being able to get them down to about 5-8ms at best. Also, there are sometimes non-monotonicly increasing jitters.

Does anyone know of any simple ways to have high-resolution, accurate timers in Windows XP?
 
Physics news on Phys.org
Dissident Dan said:
One would think that counting time would be one of the simplest functions that a computer could do, given that computers generally operate based on fixed frequencies, which I believe are generated by crystals.

The clock crystals in a computer aren't actually that good for producing accurate times. A $5 department store watch will keep better time than your computer will.