예제 #1
0
 // 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;
     }
 }
예제 #2
0
 private static extern bool CreateTimerQueueTimer(ref IntPtr handle, IntPtr queue, PrecisionTimer.TimerDelegate callback, IntPtr state, uint dueTime, uint period, uint flags);