예제 #1
0
        public void RemoveTimerTest()
        {
            TimeSlice tTimer = null; // TODO: 初始化为适当的值

            TimerThread.RemoveTimer(tTimer);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }
예제 #2
0
 public void Stop()
 {
     if (m_Running)
     {
         m_Running = false;
         TimerThread.RemoveTimer(this);
     }
 }
예제 #3
0
        public void Stop()
        {
            if (m_Running)
            {
                m_Running = false;
                TimerThread.RemoveTimer(this);

                TimerProfile prof = GetProfile();

                if (prof != null)
                {
                    prof.Stopped++;
                }
            }
        }