示例#1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="description"></param>
 /// <param name="outStats"></param>
 /// <param name="target"></param>
 /// <param name="enabled"></param>
 public TimingBlock(string description, TimingStats outStats, TimingBlock.LoggingType target = LoggingType.Console, bool enabled = true)
 {
     Description   = description;
     this.outStats = outStats;
     Enabled       = enabled;
     Target        = target;
     Startup();
 }
示例#2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="outStats"></param>
 /// <param name="target"></param>
 /// <param name="enabled"></param>
 public TimingBlock(TimingStats outStats, TimingBlock.LoggingType target = LoggingType.Console, bool enabled = true)
     : this((string)null, outStats, target, enabled)
 {
 }