TimeSpanMetricReferences public class TimeSpanMetric : IDisposable Show allProvides access to a disposable duration metric. AllConstructorsPropertiesMethods ObsoleteInherited ConstructorsTimeSpanMetric#Create a new timer id.public TimeSpanMetric( stringname,Name of metric. TimeSpanthresholdReporting threshold.)PropertiesElapsed#Gets the total duration so far logged.public TimeSpan Elapsed { get; }Name#Gets the name of this metric.public string Name { get; }Threshold#Gets the threshold reporting level. If the measured elapsed time does not exceed the threshold, no timer will be logged.public TimeSpan Threshold { get; }MethodsClear#Stop logging and clear the accumulated duration.public void Clear()Dispose#Dispose this class.public void Dispose()Pause#Pause logging.public void Pause()Start#Starts, or resumes, logging.public void Start()