Class TimestampHelper
Contains methods to work with high-resolution performance counter. This class cannot be inherited.
Inheritance
System.Object
TimestampHelper
Namespace: OnixS.CmeMdHandler
Assembly: OnixS.CmeMdHandler.dll
Syntax
public static class TimestampHelper : object
Properties
Ticks
Gets the number of ticks provided by the high-resolution performance counter.
Declaration
public static long Ticks { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
TicksPerMicrosecond
Represents the number of ticks in 1 microsecond.
Declaration
public static double TicksPerMicrosecond { get; }
Property Value
Type | Description |
---|---|
System.Double |
TicksPerMillisecond
Represents the number of ticks in 1 millisecond.
Declaration
public static double TicksPerMillisecond { get; }
Property Value
Type | Description |
---|---|
System.Double |
TicksPerSecond
Represents the number of ticks in 1 second.
Declaration
public static double TicksPerSecond { get; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
TicksToMicroseconds(Int64)
Returns the number of microseconds represented by the specified number of ticks.
Declaration
public static double TicksToMicroseconds(long ticks)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | ticks | A number of ticks. |
Returns
Type | Description |
---|---|
System.Double | A number of microseconds. |
TicksToMilliseconds(Int64)
Returns the number of milliseconds represented by the specified number of ticks.
Declaration
public static double TicksToMilliseconds(long ticks)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | ticks | A number of ticks. |
Returns
Type | Description |
---|---|
System.Double | A number of milliseconds. |
TicksToSeconds(Int64)
Returns the number of seconds represented by the specified number of ticks.
Declaration
public static double TicksToSeconds(long ticks)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | ticks | A number of ticks. |
Returns
Type | Description |
---|---|
System.Double | A number of seconds. |