示例#1
0
 /// <summary>
 /// Initialises a new instance of the CustomTimerScope class and calls the Start method of
 /// the CustomTimerInfo instance.
 /// </summary>
 /// <param name="cti">A CustomTimerInfo instance.</param>
 /// <param name="incrementCounter">Increment the counter value.</param>
 /// <param name="writeImmediately">true to write the timer value immediately when stopping, false for the normal delay.</param>
 public CustomTimerScope(CustomTimerInfo cti, bool incrementCounter, bool writeImmediately)
 {
     this.cti = cti;
     this.writeImmediately = writeImmediately;
     cti.Start(incrementCounter);
 }
示例#2
0
 /// <summary>
 /// Initialises a new instance of the CustomTimerScope class and calls the Start method of
 /// the CustomTimerInfo instance.
 /// </summary>
 /// <param name="key">The custom timer key for a dictionary lookup.</param>
 /// <param name="incrementCounter">Increment the counter value.</param>
 /// <param name="writeImmediately">true to write the timer value immediately when stopping, false for the normal delay.</param>
 public CustomTimerScope(string key, bool incrementCounter, bool writeImmediately)
 {
     this.key = key;
     this.writeImmediately = writeImmediately;
     cti = FL.StartTimer(key, incrementCounter);
 }
示例#3
0
 /// <summary>
 /// Initialises a new instance of the CustomTimerScope class and calls the Start method of
 /// the CustomTimerInfo instance.
 /// </summary>
 /// <param name="cti">A CustomTimerInfo instance.</param>
 public CustomTimerScope(CustomTimerInfo cti)
 {
     this.cti = cti;
     cti.Start();
 }
示例#4
0
 /// <summary>
 /// Initialises a new instance of the CustomTimerScope class and calls the Start method of
 /// the CustomTimerInfo instance.
 /// </summary>
 /// <param name="key">The custom timer key for a dictionary lookup.</param>
 public CustomTimerScope(string key)
 {
     this.key = key;
     cti = FL.StartTimer(key);
 }
示例#5
0
 /// <summary>
 /// Initialises a new instance of the CustomTimerScope class and calls the Start method of
 /// the CustomTimerInfo instance.
 /// </summary>
 /// <param name="cti">A CustomTimerInfo instance.</param>
 /// <param name="incrementCounter">Increment the counter value.</param>
 /// <param name="writeImmediately">true to write the timer value immediately when stopping, false for the normal delay.</param>
 public CustomTimerScope(CustomTimerInfo cti, bool incrementCounter, bool writeImmediately)
 {
     this.cti = cti;
     this.writeImmediately = writeImmediately;
     cti.Start(incrementCounter);
 }
示例#6
0
 /// <summary>
 /// Initialises a new instance of the CustomTimerScope class and calls the Start method of
 /// the CustomTimerInfo instance.
 /// </summary>
 /// <param name="cti">A CustomTimerInfo instance.</param>
 public CustomTimerScope(CustomTimerInfo cti)
 {
     this.cti = cti;
     cti.Start();
 }
示例#7
0
 /// <summary>
 /// Initialises a new instance of the CustomTimerScope class and calls the Start method of
 /// the CustomTimerInfo instance.
 /// </summary>
 /// <param name="key">The custom timer key for a dictionary lookup.</param>
 /// <param name="incrementCounter">Increment the counter value.</param>
 /// <param name="writeImmediately">true to write the timer value immediately when stopping, false for the normal delay.</param>
 public CustomTimerScope(string key, bool incrementCounter, bool writeImmediately)
 {
     this.key = key;
     this.writeImmediately = writeImmediately;
     cti = FL.StartTimer(key, incrementCounter);
 }
示例#8
0
 /// <summary>
 /// Initialises a new instance of the CustomTimerScope class and calls the Start method of
 /// the CustomTimerInfo instance.
 /// </summary>
 /// <param name="key">The custom timer key for a dictionary lookup.</param>
 public CustomTimerScope(string key)
 {
     this.key = key;
     cti      = FL.StartTimer(key);
 }