ArvernOS
Loading...
Searching...
No Matches
timer.h File Reference
#include <stdint.h>
Include dependency graph for timer.h:
This graph shows which files directly or indirectly include this file:

Functions

void timer_init ()
 
uint64_t timer_uptime ()
 
uint64_t timer_uptime_microseconds ()
 

Detailed Description

The main system timer.

Function Documentation

◆ timer_init()

void timer_init ( )

Initializes the system timer.

◆ timer_uptime()

uint64_t timer_uptime ( )

Returns the number of seconds since the timer has been initialized.

Returns
the number of seconds since the timer has been initialized

◆ timer_uptime_microseconds()

uint64_t timer_uptime_microseconds ( )

Returns the number of microseconds since the timer has been initialized.

Returns
the number of microseconds since the timer has been initialized