Retrieve interrupt time via kernel shared data
All checks were successful
Builds / ExectOS (amd64, debug) (push) Successful in 33s
Builds / ExectOS (amd64, release) (push) Successful in 41s
Builds / ExectOS (i686, release) (push) Successful in 38s
Builds / ExectOS (i686, debug) (push) Successful in 32s

This commit is contained in:
2026-06-29 00:13:00 +02:00
parent 9d5466594a
commit 2868db63ca
2 changed files with 21 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ namespace KE
STATIC ULONG TimeAdjustment;
public:
STATIC XTAPI VOID GetInterruptTime(OUT PLARGE_INTEGER InterruptTime);
STATIC XTAPI VOID GetSystemTime(OUT PLARGE_INTEGER SystemTime);
STATIC XTAPI VOID SetSystemTime(IN PLARGE_INTEGER NewTime,
OUT PLARGE_INTEGER OldTime,

View File

@@ -9,6 +9,26 @@
#include <xtos.hh>
/**
* Returns the current interrupt time.
*
* @param SystemTime
* Supplies a pointer to a variable that receives the current interrupt time.
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
XTAPI
VOID
KE::SystemTime::GetInterruptTime(OUT PLARGE_INTEGER InterruptTime)
{
LARGE_INTEGER CurrentTime;
/* Fetch the time using the lock-free shared data mechanism and return it */
CurrentTime = KE::SharedData::GetInterruptTime();
InterruptTime->QuadPart = CurrentTime.QuadPart;
}
/**
* Returns the current system time.