public ArrayGenerator(IArrayStragetyFactory arrayStragetyFactory, string name) { ArrayStrategy = arrayStragetyFactory.MakeArrayStrategy(name); }
private static Tuple<long, long, int> ExecuteTestFunc( TestFunc func, IArrayStrategy array ) { Stopwatch stopwatch; var result = func( array, out stopwatch ); return Tuple.Create( stopwatch.ElapsedTicks, stopwatch.ElapsedMilliseconds, result ); }