C# 클래스 Ros_CSharp.WrappedTimer

Wrap the System.Threading.Timer with useful functions and state information
상속: IDisposable
파일 보기 프로젝트 열기: uml-robotics/ROS.NET 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

Dispose() 공개 메소드

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

Restart() 공개 메소드

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

Start() 공개 메소드

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

Start() 공개 메소드

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

Stop() 공개 메소드

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

WrappedTimer() 공개 메소드

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