Exemple #1
0
        public static FSpeedTest TestStart()
        {
            FSpeedTest test = new FSpeedTest();

            _tests.Push(test);
            return(test);
        }
Exemple #2
0
        public static FSpeedTest TestStart(string key)
        {
            FSpeedTest test = Sync(key);

            test.DoStart();
            return(test);
        }
Exemple #3
0
        public static FSpeedTest TestEnd(string key)
        {
            FSpeedTest test = Sync(key);

            test.DoEnd();
            return(test);
        }
Exemple #4
0
        public static FSpeedTest TestEnd()
        {
            FSpeedTest test = _tests.Pop();

            if (test != null)
            {
                test.DoEnd();
            }
            return(test);
        }
Exemple #5
0
        public static FSpeedTest Sync(string key)
        {
            key = key.ToLower();
            FSpeedTest test = _globals[key];

            if (test == null)
            {
                test          = new FSpeedTest();
                _globals[key] = test;
            }
            return(test);
        }