public PerformanceLog( Stopwatch stopwatch, PerformanceResult report, ITarget target) { _stopwatch = stopwatch; _report = report; _target = target; }
public IPerformanceLog Start(string eventId) { // Start tracking time var stopwatch = Stopwatch.StartNew(); // Initiate what can be of the performance report var report = new PerformanceResult { EventId = eventId, StartDate = _clock.Now }; return(new PerformanceLog(stopwatch, report, _target)); }