public static void timefunk(String label, test_function f, int count) { int start, end, elapsed; start = Environment.TickCount; f(count); end = Environment.TickCount; elapsed = end-start; Console.WriteLine(label + " " + count + " elapsed: " + (elapsed / 1000.0)); }
public static void timefunk(String label, test_function f, int count) { int start, end, elapsed; start = Environment.TickCount; f(count); end = Environment.TickCount; elapsed = end - start; Console.WriteLine(label + " " + count + " elapsed: " + (elapsed / 1000.0)); }