private static extern uint timeSetEvent( UInt32 uDelay, UInt32 uResolution, [MarshalAs(UnmanagedType.FunctionPtr)] MMTimerProc lpTimeProc, UInt32 dwUser, Int32 fuEvent );
private static extern uint timeSetEvent( uint uDelay, uint uResolution, [MarshalAs(UnmanagedType.FunctionPtr)] MMTimerProc lpTimeProc, uint dwUser, int fuEvent );
public Timer(Action clientCallback, TimeSpan interval) { callbackFunction = CallbackFunction; this.clientCallback = clientCallback; this.interval = interval; }
public GlobalClock(TimeSpan t) { _callbackFunction = CallbackFunction; _interval = t; Start(); }