Example #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);
    }
Example #2
0
 public static void timeMethod(TimeMethodStart start)
 {
     timeMethod(new TimeMethodInit(doNothingMethod), start);
 }