[Krafton Jungle] PintOS 2.0.0
크래프톤 정글 PintOS
 
Loading...
Searching...
No Matches
timer.h
Go to the documentation of this file.
1#ifndef DEVICES_TIMER_H
2#define DEVICES_TIMER_H
3
4#include <round.h>
5#include <stdint.h>
6
7/* Number of timer interrupts per second. */
8#define TIMER_FREQ 100
9
10void timer_init (void);
11void timer_calibrate (void);
12
13int64_t timer_ticks (void);
15
17void timer_msleep (int64_t milliseconds);
18void timer_usleep (int64_t microseconds);
19void timer_nsleep (int64_t nanoseconds);
20
21void timer_print_stats (void);
22
23#endif /* devices/timer.h */
signed long long int int64_t
Definition: stdint.h:16
static int64_t ticks
Definition: timer.c:22
int64_t timer_elapsed(int64_t)
Definition: timer.c:87
int64_t timer_ticks(void)
Definition: timer.c:76
void timer_print_stats(void)
Definition: timer.c:128
void timer_init(void)
Definition: timer.c:37
void timer_calibrate(void)
Definition: timer.c:51
void timer_msleep(int64_t milliseconds)
Definition: timer.c:110
void timer_sleep(int64_t ticks)
Definition: timer.c:95
void timer_usleep(int64_t microseconds)
Definition: timer.c:116
void timer_nsleep(int64_t nanoseconds)
Definition: timer.c:122