public static void MicroSleep(Int64 MicroSec) { LARGE_INTEGER ft = new LARGE_INTEGER() { QuadPart = MicroSec }; NtDelayExecution(false, out ft); }
static extern bool SetWaitableTimer(IntPtr hTimer, [In] ref LARGE_INTEGER ft, int lPeriod, TimerCompleteDelegate pfnCompletionRoutine, IntPtr pArgToCompletionRoutine, bool fResume);
static extern Int32 NtDelayExecution(Boolean dwAlertable, out LARGE_INTEGER dwDelayInterval);