private static void Main() { // Perform test TestRunner testRunner = new TestRunner(GenerateGrid); testRunner.MeasurementDone += HandleMeasurementDone; testRunner.PerformTest(); // Write results CustomConsole.WriteLine(); TimeSpan averageTime = testRunner.CalculateAverage(); TextOutput.QuickWrite("Average: ", averageTime.TotalMilliseconds + " ms"); // Done Pause.QuickPause(); }
private static void HandleMeasurementDone(object sender, MeasurementDoneEventArgs e) { TextOutput.QuickWrite("Time:", e.Time.TotalMilliseconds + " ms"); }