Click or drag to resize

ShortTime Structure

Represents a high resolution time that is very granular but may drift if trying to accurately measure long time durations (Such as hours). This time is not adjusted with changes to the system clock. Typical clock drifts by about 2-3 ms per minute as apposed to 0.4ms per minute for standard DateTime.
Inheritance Hierarchy
SystemObject
  SystemValueType
    GSFShortTime

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public struct ShortTime : IEquatable<ShortTime>
View Source

The ShortTime type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberNow The current time in ShortTime
Public propertyUtcTime Calculates the approximate DateTime represented by this time.
Top
Methods
 NameDescription
Public methodAdd Adds timespan to this struct
Public methodAddMilliseconds Adds milliseconds to this struct
Public methodAddSeconds Adds seconds to this struct
Public methodAddTicks Adds ticks to this struct
Public methodElapsed Gets the time that has elapsed since the creation of this time.
Public methodElapsed(ShortTime) The elapsed time
Public methodElapsedMicroseconds The elapsed time in microseconds.
Public methodElapsedMicroseconds(ShortTime) The elapsed time in microseconds
Public methodElapsedMilliseconds The elapsed time in milliseconds.
Public methodElapsedMilliseconds(ShortTime) The elapsed time in milliseconds
Public methodElapsedSeconds The elapsed time in seconds.
Public methodElapsedSeconds(ShortTime) The elapsed time in seconds
Public methodElapsedTicks The elapsed time in ticks.
Public methodElapsedTicks(ShortTime) The elapsed time in ticks
Public methodEquals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Public methodEquals(ShortTime)Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToString Shows the UTC time.
(Overrides ValueTypeToString)
Top
Operators
 NameDescription
Public operatorStatic memberEquality(ShortTime, ShortTime) Are 2 times equal
Public operatorStatic memberGreaterThan(ShortTime, ShortTime) Tests Greather Than
Public operatorStatic memberGreaterThanOrEqual(ShortTime, ShortTime) Tests Greater than or equal Than
Public operatorStatic memberInequality(ShortTime, ShortTime) Are 2 times not equal
Public operatorStatic memberLessThan(ShortTime, ShortTime) Tests Less Than
Public operatorStatic memberLessThanOrEqual(ShortTime, ShortTime) Tests Less Than or equal
Public operatorStatic memberSubtraction(ShortTime, ShortTime) Subtracts two times.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
Remarks
Call times are about 40+ million calls per second.
See Also

Reference

GSF Namespace