public void a1_RunSingleTestDateTime()
        {
            PerformanceRunSet set = new PerformanceRunSet("MySimpleOp", "#", TimingMethod.DateTime_Now);
            using (set.NewRun())
            {
                DoWork(TimeToWork);
            }

            Console.WriteLine(set.GetStats());
        }
        public void a2_RunRepeatedTest()
        {
            PerformanceRunSet set = new PerformanceRunSet("MySimpleOp", "#");

            for (int i = 0; i < 10; i++)
            {
                using (set.NewRun())
                {
                    DoWork(TimeToWork);
                }
            }

            Console.WriteLine(set.GetStats());
        }
        public void a3_ThreeLevelTest()
        {
            PerformanceRunSet pRoot = new PerformanceRunSet("Library Render", "book");

            Random r = new Random(1);
            for (int i = 0; i < 10; i++)
            {
                var pBook = pRoot.NewSet("book #" + (i + 1), "page");
                
                int numPages = r.Next(3, 20);
                for (int y = 0; y < numPages; y++)
                {
                    using (pBook.NewRun())
                    {
                        DoWork(r.Next(5, 50));
                    }
                }
            }

            Console.WriteLine(pRoot.GetStats());
        }