public void Stop() { if (!mRunning) { return; } mRunning = false; TimerThread.RemoveTimer(this); TimerProfile prof = GetProfile(); if (prof != null) { prof.Stopped++; } }
public void Start() { if (mRunning) { return; } mRunning = true; TimerThread.AddTimer(this); TimerProfile prof = GetProfile(); if (prof != null) { prof.Started++; } }
public static void DumpInfo(TextWriter tw) { TimerThread.DumpInfo(tw); }