/// <summary> /// Initializes a new instance of the <see cref="StopWatchStack"/> class. /// </summary> /// <param name="dtProvider">The date and time provider.</param> public StopWatchStack(DateTimeProvider dtProvider) { _dtProvider = dtProvider; }
public StopWatch(DateTimeProvider dtProvider) { _dtProvider = dtProvider; _start = dtProvider.Now; }
private XmlLogger CreateXmlLogger(DateTimeProvider dtProvider) { XmlLogger logger = new XmlLogger(new StopWatchStack(dtProvider)); logger.OutputWriter = new StringWriter(); return logger; }