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.

Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public readonly struct ShortTime : IEquatable<ShortTime>
Inheritance
Object    ValueType    ShortTime
Implements
IEquatableShortTime

Remarks

Call times are about 40+ million calls per second.

Properties

Now The current time in ShortTime
UtcTime Calculates the approximate DateTime represented by this time.

Methods

Add Adds timespan to this struct
AddMilliseconds Adds milliseconds to this struct
AddSeconds Adds seconds to this struct
AddTicks Adds ticks to this struct
Elapsed Gets the time that has elapsed since the creation of this time.
Elapsed(ShortTime) The elapsed time
ElapsedMicroseconds The elapsed time in microseconds.
ElapsedMicroseconds(ShortTime) The elapsed time in microseconds
ElapsedMilliseconds The elapsed time in milliseconds.
ElapsedMilliseconds(ShortTime) The elapsed time in milliseconds
ElapsedSeconds The elapsed time in seconds.
ElapsedSeconds(ShortTime) The elapsed time in seconds
ElapsedTicks The elapsed time in ticks.
ElapsedTicks(ShortTime) The elapsed time in ticks
Equals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Equals(ShortTime)Indicates whether the current object is equal to another object of the same type.
GetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToString Shows the UTC time.
(Overrides ValueTypeToString)

Operators

Equality(ShortTime, ShortTime) Are 2 times equal
GreaterThan(ShortTime, ShortTime) Tests Greater Than
GreaterThanOrEqual(ShortTime, ShortTime) Tests Greater than or equal Than
Inequality(ShortTime, ShortTime) Are 2 times not equal
LessThan(ShortTime, ShortTime) Tests Less Than
LessThanOrEqual(ShortTime, ShortTime) Tests Less Than or equal
Subtraction(ShortTime, ShortTime) Subtracts two times.

Extension Methods

GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)

See Also