Implement system time management functions
All checks were successful
Builds / ExectOS (amd64, release) (push) Successful in -59m27s
Builds / ExectOS (amd64, debug) (push) Successful in -59m26s
Builds / ExectOS (i686, debug) (push) Successful in -59m25s
Builds / ExectOS (i686, release) (push) Successful in -59m27s

This commit is contained in:
2026-04-27 23:02:15 +02:00
parent 58deafb1d8
commit 98733aa62b
3 changed files with 132 additions and 0 deletions

View File

@@ -27,6 +27,7 @@
#include <ke/shdata.hh>
#include <ke/spinlock.hh>
#include <ke/sysres.hh>
#include <ke/systime.hh>
#include <ke/timer.hh>
#endif /* __XTOSKRNL_KE_HH */

View File

@@ -0,0 +1,32 @@
/**
* PROJECT: ExectOS
* COPYRIGHT: See COPYING.md in the top level directory
* FILE: xtoskrnl/includes/ke/systime.hh
* DESCRIPTION: Timebase and system clock support
* DEVELOPERS: Aiken Harris <harraiken91@gmail.com>
*/
#ifndef __XTOSKRNL_KE_SYSTIME_HH
#define __XTOSKRNL_KE_SYSTIME_HH
#include <xtos.hh>
/* Kernel Library */
namespace KE
{
class SystemTime
{
private:
STATIC LARGE_INTEGER BootTime;
public:
STATIC XTAPI VOID GetSystemTime(OUT PLARGE_INTEGER SystemTime);
STATIC XTAPI VOID SetSystemTime(IN PLARGE_INTEGER NewTime,
OUT PLARGE_INTEGER OldTime,
IN BOOLEAN AdjustInterruptTime,
IN BOOLEAN WriteToRtc);
};
}
#endif /* __XTOSKRNL_KE_SYSTIME_HH */