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 StopwatchExtensionsMethods
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 Stopwatchto obtain the elapsed time from. | 
Returns
| Type | Description | 
|---|---|
| Duration | The elapsed time of stopwatchas aDuration. |