/// <summary> /// 开始时间片的处理 /// </summary> public void Start() { if (m_Running == false) { m_Running = true; TimerThread.AddTimer(this); TimerProfile timerProfile = GetProfile(); if (timerProfile != null) { timerProfile.RegStart(); } } }
/// <summary> /// 停止时间片的处理 /// </summary> public void Stop() { if (m_Running == true) { m_Running = false; TimerThread.RemoveTimer(this); TimerProfile timerProfile = GetProfile(); if (timerProfile != null) { timerProfile.RegStopped(); } } }
public void TimerThreadConstructorTest() { TimerThread target = new TimerThread(); Assert.Inconclusive( "TODO: 实现用来验证目标的代码" ); }