Posts Tagged ‘timeBeginPeriod’

Bypass the 15ms inaccuracy

Written by Ingmar Verheij on April 21st, 2011. Posted in Performance testing

As Tim Mangan recently blogged, the system timer in a multiprocessor Windows machine operates at 15ms. The effect of this 15ms is that a measurement / calculation in your program can vary with 15ms. This is fine for most operations in your program, but not when you want accuracy to the millisecond.

Although the best solution to the problem is changing the system timers, as Tim Mangan wrote, a workaround is available.

Donate