Click or drag to resize

Duration Class

Hi-resolution time span. Valid range is 1 nanosecond to 292 years.
Inheritance Hierarchy
SystemObject
  Zivid.NETDuration

Namespace:  Zivid.NET
Assembly:  ZividCoreNET (in ZividCoreNET.dll) Version: 0.0.0.0
Syntax
public class Duration : IDisposable

The Duration type exposes the following members.

Constructors
  NameDescription
Public methodDuration
Initializes a new instance of Duration to the specified number of nanoseconds.
Top
Properties
  NameDescription
Public propertyHours
Gets the value of the duration expressed in hours.
Public propertyMicroseconds
Gets the value of the duration expressed in microseconds.
Public propertyMilliseconds
Gets the value of the duration expressed in milliseconds.
Public propertyMinutes
Gets the value of the duration expressed in minutes.
Public propertyNanoseconds
Gets the value of the duration expressed in nanoseconds.
Public propertySeconds
Gets the value of the duration expressed in seconds.
Public propertyTicks
Gets the value of the duration expressed in ticks.
Public propertyTimeSpan
Gets the value of the duration expressed as a TimeSpan structure.
Top
Methods
  NameDescription
Public methodDispose
Destructs the Duration instance.
Public methodStatic memberFromHours
Returns a duration that represents the specified number of hours.
Public methodStatic memberFromMicroseconds
Returns a duration that represents the specified number of microseconds.
Public methodStatic memberFromMilliseconds
Returns a duration that represents the specified number of milliseconds.
Public methodStatic memberFromMinutes
Returns a duration that represents the specified number of minutes.
Public methodStatic memberFromNanoseconds
Returns a duration that represents the specified number of nanoseconds.
Public methodStatic memberFromSeconds
Returns a duration that represents the specified number of seconds.
Public methodStatic memberFromTicks
Returns a duration that represents the specified number of ticks.
Public methodStatic memberFromTimeSpan
Returns a duration that represents the specified time span.
Top
See Also