Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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();
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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();
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }