Implement system time management functions
All checks were successful
All checks were successful
This commit is contained in:
@@ -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 */
|
||||
|
||||
32
xtoskrnl/includes/ke/systime.hh
Normal file
32
xtoskrnl/includes/ke/systime.hh
Normal 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 */
|
||||
Reference in New Issue
Block a user