コード例 #1
0
ファイル: Tester.cs プロジェクト: ylyking/Exporter
 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;
 }
コード例 #2
0
ファイル: Tester.cs プロジェクト: ylyking/Exporter
    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);
    }