public static void TestMethod(PerformanceTests.TestCode testFunction)
    {
        Stopwatch sw   = new Stopwatch();
        float     time = sw.RunTest(testFunction);

        UnityEngine.Debug.Log("Time Elapsed " + time + " miliseconds");
    }
 public static long RunPrintTest(this Stopwatch stopwatch, PerformanceTests.TestCode testFunction)
 {
     stopwatch.Reset();
     stopwatch.Start();
     testFunction();
     return(stopwatch.ElapsedMilliseconds);
 }