Noda Time
Show / Hide Table of Contents

Class StopwatchExtensions

Extension methods for System.Diagnostics.Stopwatch.
Since 2.0.x
Availability netstandard2.0
Inheritance
Object
StopwatchExtensions
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: NodaTime.Extensions
Assembly: NodaTime.dll
Syntax
public static class StopwatchExtensions

Methods

ElapsedDuration(Stopwatch)

Returns the elapsed time of stopwatch as a Duration.
Since 2.0.x
Availability netstandard2.0
Declaration
public static Duration ElapsedDuration(this Stopwatch stopwatch)
Parameters
Type Name Description
Stopwatch stopwatch The Stopwatch to obtain the elapsed time from.
Returns
Type Description
Duration The elapsed time of stopwatch as a Duration.
In this article
Back to top Generated by DocFX