C# Class Ros_CSharp.WrappedTimer

Wrap the System.Threading.Timer with useful functions and state information
Inheritance: IDisposable
Mostrar archivo Open project: uml-robotics/ROS.NET Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Restart ( ) : void

Stops then Resets the timer, causing any time spent waiting for the next callback to be reset

Start ( ) : void

Starts the timer with this wrapper's set delay and period.

Start ( int d, int p ) : void

Sets this timers delay and period, and immediately starts it

Stop ( ) : void

Stops the timer from firing, while remembering its last set state and period

WrappedTimer ( TimerCallback cb, int d, int p ) : System

Instantiate the wrapper

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Restart() public method

Stops then Resets the timer, causing any time spent waiting for the next callback to be reset
public Restart ( ) : void
return void

Start() public method

Starts the timer with this wrapper's set delay and period.
public Start ( ) : void
return void

Start() public method

Sets this timers delay and period, and immediately starts it
public Start ( int d, int p ) : void
d int
p int
return void

Stop() public method

Stops the timer from firing, while remembering its last set state and period
public Stop ( ) : void
return void

WrappedTimer() public method

Instantiate the wrapper
public WrappedTimer ( TimerCallback cb, int d, int p ) : System
cb TimerCallback
d int Its delay
p int Its period
return System