public static BenchmarkWatch StartNew() { var watch = new BenchmarkWatch(); watch.Restart(); return(watch); }
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); }