static double Execute(Action action) { var stopwatch = Stopwatch.StartNew(); action(); return stopwatch.Elapsed.TotalMilliseconds; }