PackageDescription: WindowsTimerResolution

Windows Timer Resolution

Last published: September 27, 2011 by 'stevek'

Defines 1 Classes
Extends 1 Classes

WindowsTimerResolution is an interface to the Windows multimedia library, winmm.dll, present from Windows 2000 on. Currently the only functionality revealed is the ability to set the resolution of the global system timer. By default, Windows Vista and 7 have a timer resolution of 15ms (10ms for single core uniprocessor machines), so "(Delay forMilliseconds: 1) wait" will actually take 15ms.

To improve the resolution, call #milliseconds:while:, e.g.
WindowsTimerResolution milliseconds: 1 while:
[Time microsecondsToRun: [1000 timesRepeat: [(Delay forMilliseconds: 1) wait]]]