[+] StaticClocksQuery.hpp header (split off)

This commit is contained in:
Reece Wilson 2023-10-23 09:49:43 +01:00
parent 1f685b635b
commit 3dee15a0f6
3 changed files with 22 additions and 9 deletions

View File

@ -44,15 +44,6 @@ namespace Aurora::Time
*/
AUKN_SYM AuUInt64 SteadyClockJiffies();
/**
* @return { time spent in userland, time spent in kernelland }
*/
AUKN_SYM AuPair<AuUInt64, AuUInt64> GetClockUserAndKernelTimeNS(EClock clock);
AUKN_SYM AuUInt64 QueryClockTimeNS(EClock clock);
AUKN_SYM AuUInt64 QueryClockFrequency(EClock clock);
/**
* @brief frequency in jiffies per second
*/

View File

@ -0,0 +1,21 @@
/***
Copyright (C) 2021-2023 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: StaticClocksQuery.hpp
Date: 2023-09-23
Date: 2023-10-23
Author: Reece
***/
#pragma once
namespace Aurora::Time
{
/**
* @return { time spent in userland, time spent in kernelland }
*/
AUKN_SYM AuPair<AuUInt64, AuUInt64> GetClockUserAndKernelTimeNS(EClock clock);
AUKN_SYM AuUInt64 QueryClockTimeNS(EClock clock);
AUKN_SYM AuUInt64 QueryClockFrequency(EClock clock);
}

View File

@ -12,6 +12,7 @@
#include "StaticClocks.hpp"
#include "StaticClocksDirect.hpp"
#include "StaticClocksClasses.hpp"
#include "StaticClocksQuery.hpp"
namespace Aurora::Time
{