// Token: 0x06000B3F RID: 2879 RVA: 0x00058C18 File Offset: 0x00056E18 public void Create(uint dueTime, uint period, PrecisionTimer.TimerDelegate callback) { if (!this._Enabled) { this.TimerCallback = callback; bool enabled; if (!(enabled = PrecisionTimer.CreateTimerQueueTimer(ref this.Handle, IntPtr.Zero, this.TimerCallback, IntPtr.Zero, dueTime, period, 0u))) { this.ThrowNewException("CreateTimerQueueTimer"); } this._Enabled = enabled; } }
// Token: 0x06000B40 RID: 2880 RVA: 0x00058C6C File Offset: 0x00056E6C public void Delete() { if (this._Enabled) { bool flag; bool arg_36_0; if (!(flag = PrecisionTimer.DeleteTimerQueueTimer(IntPtr.Zero, this.Handle, IntPtr.Zero))) { if (Marshal.GetLastWin32Error() != 997) { arg_36_0 = true; goto IL_36; } } arg_36_0 = false; IL_36: if (arg_36_0) { this.ThrowNewException("DeleteTimerQueueTimer"); } this._Enabled = !flag; } }