/// <summary> /// Wait for a debug event. /// </summary> /// <param name="timeout_ms">Wait timeout in milliseconds.</param> /// <returns>The debug event.</returns> public DebugEvent WaitForDebugEvent(long timeout_ms) { return(WaitForDebugEvent(false, NtWaitTimeout.FromMilliseconds(timeout_ms))); }
/// <summary> /// Sleep the current thread for a specified number of milliseconds. /// </summary> /// <param name="delay_ms">The delay in milliseconds.</param> /// <returns>True if the thread was alerted before the delay expired.</returns> public static bool SleepMs(long delay_ms) { return(Sleep(false, NtWaitTimeout.FromMilliseconds(delay_ms))); }
/// <summary> /// Set timer state in milliseconds. /// </summary> /// <param name="due_time_ms">The due time for the timer in milliseconds.</param> /// <returns>The previous state.</returns> public bool SetMs(long due_time_ms) { return(Set(NtWaitTimeout.FromMilliseconds(due_time_ms))); }