Пример #1
0
    public static void timeMethod(TimeMethodInit init, TimeMethodStart start)
    {
        Stopwatch s = new Stopwatch();

        init();
        s.Start();
        start();
        s.Stop();
        UnityEngine.Debug.LogError(s.ElapsedMilliseconds);
    }
Пример #2
0
 public static void timeMethod(TimeMethodStart start)
 {
     timeMethod(new TimeMethodInit(doNothingMethod), start);
 }