/// <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); }
/// <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); }