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