Property | Type | Description | |
---|---|---|---|
HardwareSyncTicks | int |
Method | Description | |
---|---|---|
GetBootTime ( |
Retrieves the system boot time.
|
|
GetCurrentTime ( ) : |
||
GetCurrentTime ( |
Retrieves the current system clock time.
|
|
GetCurrentTimestamp ( ) : ulong | ||
GetHardwareTime ( |
Retrieves the current hardware time. If this is not possible, this method returns false.
|
|
GetHardwareTimestamp ( ) : ulong |
Retrieves the current hardware time as a timestamp. If this is not possible, this method returns 0.
|
|
GetNanostamp ( ) : ulong |
Returns the amount of nanoseconds since the last ResetNanostamp() call. This value is limited in precision to the frequency of the system timer.
|
|
ResetNanostamp ( ) : void |
Resets the nanostamp counter.
|
|
Setup ( ) : void |
Initializes the system clock. First the hardware time is read and stored as the boot time and current time. The times are stored as 64-bit unsigned integers with 100-nanosecond ticks since the epoch (January 1, 0001, 00:00:00). A handler is added to the system timer event which updates the current time and handles periodic synchronization with the hardware time. The amount added to the current time per timer fire is relevant to the frequency reportedly used by the system timer.
|
|
Write ( ) : void |
Method | Description | |
---|---|---|
UpdateClock ( uint ticks ) : void |
public static GetBootTime ( |
||
time | ||
return | void |
public static GetCurrentTime ( |
||
time | ||
return | void |
public static GetCurrentTimestamp ( ) : ulong | ||
return | ulong |
public static GetHardwareTime ( |
||
time | ||
return | bool |
public static GetHardwareTimestamp ( ) : ulong | ||
return | ulong |