Exemplo n.º 1
0
        public static bool StopTimer(string name)
        {
            DiagTimer t = TimerDictionary[name];

            if (t != null)
            {
                t.Stop();
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 2
0
        public static string StopAndGetTimer(string name)
        {
            DiagTimer t = TimerDictionary[name];

            if (t != null)
            {
                t.Stop();
                return(GetTimer(name));
            }
            else
            {
                return("Error: " + name + " Not Found");
            }
        }