Exemple #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);
 }
Exemple #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);
 }
Exemple #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();
 }
Exemple #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);
 }
Exemple #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);
 }
Exemple #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();
 }
Exemple #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);
 }
Exemple #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);
 }