coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
timestamp.c File Reference
#include <cpu/x86/tsc.h>
#include <timestamp.h>
Include dependency graph for timestamp.c:

Go to the source code of this file.

Functions

uint64_t timestamp_get (void)
 
int timestamp_tick_freq_mhz (void)
 

Function Documentation

◆ timestamp_get()

uint64_t timestamp_get ( void  )

Definition at line 6 of file timestamp.c.

References rdtscll().

Referenced by get_us_since_boot(), and timestamp_add_now().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ timestamp_tick_freq_mhz()

int timestamp_tick_freq_mhz ( void  )

Definition at line 11 of file timestamp.c.

References tsc_constant_rate(), and tsc_freq_mhz().

Referenced by cbmem_inject_telemetry_data(), and timestamp_reinit().

Here is the call graph for this function:
Here is the caller graph for this function: