LoggingWatch
A class in Root.Township, Alta.Utilities.
Stopwatch that logs how long a step took, at debug, warn or error level.
- Listed in Utilities and other Alta namespaces
Constructors
| Member | What it is |
|---|---|
LoggingWatch() | Creates a LoggingWatch from errorLevel. |
LoggingWatch(int errorLevel) | Creates a LoggingWatch from errorLevel. |
Fields
3 private and internal fields
Methods
| Member | What it is |
|---|---|
void Measure(string name) | Stops the watch and logs that the named step took so many milliseconds, at the chosen level. |
void Start() | Restarts the watch from zero. |