public PerfRecord Subject(string type, string subject, long allowableRuntimeInMilliseconds = 0) { var record = new PerfRecord(type, subject, _stopwatch.ElapsedMilliseconds, allowableRuntimeInMilliseconds); _records.Add(record); return(record); }
public void End(PerfRecord record, IResultMessage result = null) { if (record == null) { throw new ArgumentNullException(nameof(record)); } record.MarkEnd(_stopwatch.ElapsedMilliseconds); result?.MarkPerformance(record); }
public PerfRecordTracking(Timings parent, PerfRecord record) { _parent = parent; _record = record; }
public void Start(Specification spec) { _main = new PerfRecord("Specification", spec.name, 0, 0); _records.Add(_main); _stopwatch.Start(); }