OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
OcTimerLib.h File Reference
#include <Library/TimerLib.h>

Go to the source code of this file.

Macros

#define OC_MINIMAL_CPU_DELAY   10
 

Functions

UINT64 RecalculateTSC (VOID)
 
UINT64 EFIAPI GetTscFrequency (VOID)
 

Detailed Description

Copyright (C) 2016, The HermitCrabs Lab. All rights reserved.
Copyright (C) 2021, Mike Beaton. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause

Definition in file OcTimerLib.h.

Macro Definition Documentation

◆ OC_MINIMAL_CPU_DELAY

#define OC_MINIMAL_CPU_DELAY   10

Definition at line 15 of file OcTimerLib.h.

Function Documentation

◆ GetTscFrequency()

UINT64 EFIAPI GetTscFrequency ( VOID )

Return cached PerformanceCounterFrequency value. For instrumentation purposes only.

Return values
Thetimer frequency in use.

Return cached PerformanceCounterFrequency value.

Return values
Thetimer frequency in use.

Definition at line 243 of file OcTimerLib.c.

◆ RecalculateTSC()

UINT64 RecalculateTSC ( VOID )

Calculate the TSC frequency

Return values
Thecalculated TSC frequency.