/** * testFibo1. * * @return */ public static long testFibo() { DateTime start = DateTime.Now; for (int i = NB_FIBO_TESTS; i != 0; i--) { int fibo = ThreadFibo.fib(FIBO_N); } DateTime end = DateTime.Now; TimeSpan executionTime = end - start; Console.WriteLine("[ThreadingTest], Invoke of " + NB_FIBO_TESTS + " int fibo = ThreadFibo.fib(" + FIBO_N + ") ,, snapshot time," + executionTime.TotalMilliseconds); return((long)executionTime.TotalMilliseconds); }
public void call() { result = ThreadFibo.fib(n); }