Exemple #1
0
 public static float TimeConsumed(VoidCallfunc callfunc, string title)
 {
     float time = UnityEngine.Time.time;
     callfunc ();
     time = UnityEngine.Time.time - time;
     UnityEngine.Debug.Log (title + " TimeConsumed with " + time + " ms.");
     return time;
 }
Exemple #2
0
    public static float TimeConsumed(VoidCallfunc callfunc, string title)
    {
        float time = UnityEngine.Time.time;

        callfunc();
        time = UnityEngine.Time.time - time;
        UnityEngine.Debug.Log(title + " TimeConsumed with " + time + " ms.");
        return(time);
    }