public ThreadRunner(Func<bool> executionCondition, ThreadResult result, TimingSettings settings, BenchmarkState sharedState, Action test, ITimerFactory timerFactory) { this.ExecutionCondition = executionCondition; this.Result = result; this.Settings = settings; this.SharedState = sharedState; this.Test = test; Timer = timerFactory.Create(); thread = new Thread(Run); thread.IsBackground = true; }
public Benchmark(TimingSettings settings = null, string name = null) { this.Name = name; this.Settings = settings; }