示例#1
0
            public static BenchmarkWatch StartNew()
            {
                var watch = new BenchmarkWatch();

                watch.Restart();
                return(watch);
            }
示例#2
0
        private static BenchmarkResult Run(uint iterations)
        {
            Console.Write($"Running {iterations} iterations...");
            var watch = BenchmarkWatch.StartNew();

            RunMany(iterations);
            var result = watch.Stop(iterations);

            Console.WriteLine("done, " + result);
            return(result);
        }