MAGE  v0.171.0
Matthias Advanced Game Engine
mage::anonymous_namespace{system_time.cpp} Namespace Reference

Functions

U64 ConvertTimestamp (const FILETIME &ftime) noexcept
 
U64 GetSystemTimestamp () noexcept
 
const std::pair< U64, U64GetCoreTimestamps () noexcept
 
U64 GetCoreTimestamp () noexcept
 
U64 GetKernelModeCoreTimestamp () noexcept
 
U64 GetUserModeCoreTimestamp () noexcept
 
U64 GetCoreTimestampPerCore () noexcept
 
U64 GetKernelModeCoreTimestampPerCore () noexcept
 
U64 GetUserModeCoreTimestampPerCore () noexcept
 

Variables

const FU16 g_nb_system_cores = NumberOfSystemCores()
 

Function Documentation

◆ ConvertTimestamp()

U64 mage::anonymous_namespace{system_time.cpp}::ConvertTimestamp ( const FILETIME &  ftime)
noexcept

Converts the given file time to an U64 (in 100 ns).

Parameters
[in]ftimeA reference to the file time.
Returns
A U64 (in 100 ns) representing the given file time.

◆ GetCoreTimestamp()

U64 mage::anonymous_namespace{system_time.cpp}::GetCoreTimestamp ( )
noexcept

Returns the current core timestamp (in 100 ns).

Returns
The current core timestamp of the calling process.

◆ GetCoreTimestampPerCore()

U64 mage::anonymous_namespace{system_time.cpp}::GetCoreTimestampPerCore ( )
noexcept

Returns the current core timestamp per system core (in 100 ns).

Returns
The current core timestamp of the calling process per system core.

◆ GetCoreTimestamps()

const std::pair< U64, U64 > mage::anonymous_namespace{system_time.cpp}::GetCoreTimestamps ( )
noexcept

Returns the current core timestamps (in 100 ns).

Returns
A pair containing the current kernel and user mode timestamp of the calling process.
Note
If the retrieval fails, both the kernel and user mode timestamp are zero. To get extended error information, call GetLastError.

◆ GetKernelModeCoreTimestamp()

U64 mage::anonymous_namespace{system_time.cpp}::GetKernelModeCoreTimestamp ( )
noexcept

Returns the current kernel mode core timestamp (in 100 ns).

Returns
The current kernel mode core timestamp of the calling process.

◆ GetKernelModeCoreTimestampPerCore()

U64 mage::anonymous_namespace{system_time.cpp}::GetKernelModeCoreTimestampPerCore ( )
noexcept

Returns the current kernel mode core timestamp per system core (in 100 ns).

Returns
The current kernel mode core timestamp of the calling process per system core.

◆ GetSystemTimestamp()

U64 mage::anonymous_namespace{system_time.cpp}::GetSystemTimestamp ( )
noexcept

Returns the current system timestamp (in 100 ns).

Returns
The current system timestamp (in 100 ns).

◆ GetUserModeCoreTimestamp()

U64 mage::anonymous_namespace{system_time.cpp}::GetUserModeCoreTimestamp ( )
noexcept

Returns the current user mode core timestamp (in 100 ns).

Returns
The current user mode core timestamp of the calling process.

◆ GetUserModeCoreTimestampPerCore()

U64 mage::anonymous_namespace{system_time.cpp}::GetUserModeCoreTimestampPerCore ( )
noexcept

Returns the current user mode core timestamp per system core (in 100 ns).

Returns
The current user mode core timestamp of the calling process per system core.

Variable Documentation

◆ g_nb_system_cores

const FU16 mage::anonymous_namespace{system_time.cpp}::g_nb_system_cores = NumberOfSystemCores()

The number of system cores.