summaryrefslogtreecommitdiff
path: root/stage3/clock.h
blob: f0255bccbe151a7453e71424e46001e04a222984 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef CLOCK_H
#define CLOCK_H

#include "def.h"

#define NANOSECONDS 1000000000
#define RTC_FREQ 1024
#define RTC_RATE NANOSECONDS/RTC_FREQ

extern u64 monoclock_rtc_time;

void clock_init();

u64 clock_cycles();
u64 clock_monotonic_coarse();
u64 clock_monotonic();

#endif