Why do Windows timing functions have poor resolution and accuracy?

  • Thread starter Thread starter Dissident Dan
  • Start date Start date
  • Tags Tags
    Functions Windows
AI Thread Summary
Counting time on computers, particularly in Windows XP, is often less accurate than expected due to limitations in the operating system's time functions, which typically offer a resolution of only 5-8 milliseconds and can exhibit non-monotonic jitter. This raises concerns about the reliability of timekeeping in computing environments. Additionally, the clock crystals used in computers are not as precise as those found in inexpensive watches, leading to further discrepancies in time measurement. Users seeking high-resolution and accurate timers in Windows XP are encouraged to explore alternative solutions to improve timekeeping accuracy.
Dissident Dan
Messages
236
Reaction score
2
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?
 
Computer science news on Phys.org
http://www.cl.cam.ac.uk/users/kw217/useful/win32time.html
 
Last edited by a moderator:
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.
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top