예제 #1
0
        public static new SuperStopwatch StartNew()
        {
            SuperStopwatch s = new SuperStopwatch();

            s.Start();
            return(s);
        }
예제 #2
0
        internal void LogStartEvent(Tuple <Tuple <string, int>, double> keyCPU)
        {
            if (!WatchedProcesses.ContainsKey(keyCPU.Item1))
            {
                string name = keyCPU.Item1.Item1;

                WatchedProcesses[keyCPU.Item1] = SuperStopwatch.StartNew();

                if (!Durations.ContainsKey(name))
                {
                    Durations.Add(name, TimeSpan.Zero);
                }
            }
        }