示例#1
0
        private static void TestPerformance()
        {
            var testClass = new EngineTests();

            try {
                testClass.Setup();
                testClass.TestGamePerformance();
            } catch (Exception ex) {
                Console.WriteLine(ex);
            }
        }
示例#2
0
        private static void TestPerformance()
        {
            var testClass = new EngineTests();

            try {
                testClass.Setup();
                var watch = Stopwatch.StartNew();
                testClass.TestGamePerformance();
                Console.WriteLine(watch.ElapsedMilliseconds);
            } catch (Exception ex) {
                Console.WriteLine(ex);
            }
        }