C# 클래스 SharpOS.Kernel.Foundation.Clock

파일 보기 프로젝트 열기: sharpos/SharpOS

공개 프로퍼티들

프로퍼티 타입 설명
HardwareSyncTicks int

공개 메소드들

메소드 설명
GetBootTime ( Time time ) : void

Retrieves the system boot time.

GetCurrentTime ( ) : Time
GetCurrentTime ( Time time ) : void

Retrieves the current system clock time.

GetCurrentTimestamp ( ) : ulong
GetHardwareTime ( Time time ) : bool

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

비공개 메소드들

메소드 설명
UpdateClock ( uint ticks ) : void

메소드 상세

GetBootTime() 공개 정적인 메소드

Retrieves the system boot time.
public static GetBootTime ( Time time ) : void
time Time
리턴 void

GetCurrentTime() 공개 정적인 메소드

public static GetCurrentTime ( ) : Time
리턴 Time

GetCurrentTime() 공개 정적인 메소드

Retrieves the current system clock time.
public static GetCurrentTime ( Time time ) : void
time Time
리턴 void

GetCurrentTimestamp() 공개 정적인 메소드

public static GetCurrentTimestamp ( ) : ulong
리턴 ulong

GetHardwareTime() 공개 정적인 메소드

Retrieves the current hardware time. If this is not possible, this method returns false.
public static GetHardwareTime ( Time time ) : bool
time Time
리턴 bool

GetHardwareTimestamp() 공개 정적인 메소드

Retrieves the current hardware time as a timestamp. If this is not possible, this method returns 0.
public static GetHardwareTimestamp ( ) : ulong
리턴 ulong

GetNanostamp() 공개 정적인 메소드

Returns the amount of nanoseconds since the last ResetNanostamp() call. This value is limited in precision to the frequency of the system timer.
public static GetNanostamp ( ) : ulong
리턴 ulong

ResetNanostamp() 공개 정적인 메소드

Resets the nanostamp counter.
public static ResetNanostamp ( ) : void
리턴 void

Setup() 공개 정적인 메소드

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.
public static Setup ( ) : void
리턴 void

Write() 공개 정적인 메소드

public static Write ( ) : void
리턴 void

프로퍼티 상세

HardwareSyncTicks 공개적으로 정적으로 프로퍼티

The interval of time (in 100-nanosecond ticks) between synchronizations from the hardware clock to the software clock. (default 600000000 ticks is 1 minute).
public static int HardwareSyncTicks
리턴 int