C# Class Emlid.WindowsIot.Common.TimeSpanExtensions

Extensions to the TimeSpan class.
Datei anzeigen Open project: emlid/Navio-SDK-Windows-IoT

Public Properties

Property Type Description
TicksPerMicrosecond double

Public Methods

Method Description
FromMicroseconds ( long microseconds ) : System.TimeSpan

Creates a TimeSpan from an interval specified in microseconds.

TotalMicroseconds ( this span ) : long

Gets the total elapsed time in microseconds.

Method Details

FromMicroseconds() public static method

Creates a TimeSpan from an interval specified in microseconds.
public static FromMicroseconds ( long microseconds ) : System.TimeSpan
microseconds long
return System.TimeSpan

TotalMicroseconds() public static method

Gets the total elapsed time in microseconds.
public static TotalMicroseconds ( this span ) : long
span this
return long

Property Details

TicksPerMicrosecond public_oe static_oe property

Number of TimeSpan.Ticks in a microsecond.
public static double TicksPerMicrosecond
return double