Example #1
0
 private SingleTestResult runTestIteration(int seed, int numCities, MethodInfo implementation,
     BackgroundWorker worker, TestSuiteProgressData progressData)
 {
     ProblemAndSolver ps = new ProblemAndSolver(seed, numCities);
     ps.UpdateForm = false;
     Stopwatch sw = new Stopwatch();
     sw.Start();
     implementation.Invoke(ps, new object[]{});
     sw.Start();
     return new SingleTestResult(ps.costOfBssf(), sw.ElapsedMilliseconds / 1000d);
 }