public static TimeSpan Time(Action a) { DateTime start = DateTime.Now; a (); return DateTime.Now - start; }