示例#1
0
 /// <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;
 }
示例#2
0
 public StopWatch(DateTimeProvider dtProvider) {
     _dtProvider = dtProvider;
     _start = dtProvider.Now;
 }
示例#3
0
 private XmlLogger CreateXmlLogger(DateTimeProvider dtProvider) {
     XmlLogger logger = new XmlLogger(new StopWatchStack(dtProvider));
     logger.OutputWriter = new StringWriter();
     return logger;
 }