public static void timeMethod(TimeMethodInit init, TimeMethodStart start) { Stopwatch s = new Stopwatch(); init(); s.Start(); start(); s.Stop(); UnityEngine.Debug.LogError(s.ElapsedMilliseconds); }
public static void timeMethod(TimeMethodStart start) { timeMethod(new TimeMethodInit(doNothingMethod), start); }