I am researching JavaScript timer resolutions for various IE/Windows combinations . On my IE9/Vista box, I’m getting a 17ms timer resolution (from running this test.) I don’t have access to these other combinations. (I don’t know if this should be a community wiki question, but here goes anyway)
XP Vista Win7
-- -- --
IE7 ? ? ?
IE8 ? ? ?
IE9 ? ? ?
After further research, I discovered that prior to Window 7, the IE javascript timer just called the windows system timer which is 64 ticks per second – or 15.6ms intervals. In Windows 7, there are actually two timer settings. A 4ms timer which applies when you are plugged in, and the old 15.6ms timer that applies when you are unplugged. This is a power saving measure that is actually configurable from the advanced power configuration setting interface – so you can switch your personal machine to have 15.6ms or 4ms in all cases, or if you want to be perverse – to have the high power consumption when you’re unplugged and low power consumption when you’re plugged.