NtSetTimerResolution (ntdll)
Last changed: -199.204.56.17

.
Summary
Sets the resolution of the system Timer in the calling process context. The resolution value is in 100ns units, so a value of 10000 is one millisecond.

C# Signature:

[DllImport("ntdll.dll", SetLastError=true)]
static extern int NtSetTimerResolution(int DesiredResolution, bool SetResolution, out int CurrentResolution );

Notes:

None.

VB.NET Signature

Declare Function NtSetTimerResolution Lib "ntdll.dll" (ByVal DesiredResolution as UInteger, ByVal SetResolution as Boolean, ByRef CurrentResolution as UInteger)

Tips & Tricks:

Please add some!

Sample Code:

NtSetTimerResolution(10000, True, 0)

Please add some!

Documentation