示例#1
0
        public void Stop()
        {
            if (!mRunning)
            {
                return;
            }
            mRunning = false;
            TimerThread.RemoveTimer(this);

            TimerProfile prof = GetProfile();

            if (prof != null)
            {
                prof.Stopped++;
            }
        }
示例#2
0
        public void Start()
        {
            if (mRunning)
            {
                return;
            }

            mRunning = true;
            TimerThread.AddTimer(this);

            TimerProfile prof = GetProfile();

            if (prof != null)
            {
                prof.Started++;
            }
        }
示例#3
0
 public static void DumpInfo(TextWriter tw)
 {
     TimerThread.DumpInfo(tw);
 }