#include "devices/timer.h"#include <debug.h>#include <inttypes.h>#include <round.h>#include <stdio.h>#include "threads/interrupt.h"#include "threads/io.h"#include "threads/synch.h"#include "threads/thread.h"
Functions | |
| static bool | too_many_loops (unsigned loops) |
| static void | busy_wait (int64_t loops) |
| static void | real_time_sleep (int64_t num, int32_t denom) |
| void | timer_init (void) |
| void | timer_calibrate (void) |
| int64_t | timer_ticks (void) |
| int64_t | timer_elapsed (int64_t then) |
| void | timer_sleep (int64_t ticks) |
| void | timer_msleep (int64_t ms) |
| void | timer_usleep (int64_t us) |
| void | timer_nsleep (int64_t ns) |
| void | timer_print_stats (void) |
| static void | timer_interrupt (struct intr_frame *args UNUSED) |
Variables | |
| static int64_t | ticks |
| static unsigned | loops_per_tick |
| static intr_handler_func | timer_interrupt |


| void timer_calibrate | ( | void | ) |




| void timer_init | ( | void | ) |


|
static |
| void timer_msleep | ( | int64_t | ms | ) |


| void timer_nsleep | ( | int64_t | ns | ) |


| void timer_print_stats | ( | void | ) |


| void timer_sleep | ( | int64_t | ticks | ) |


| int64_t timer_ticks | ( | void | ) |


| void timer_usleep | ( | int64_t | us | ) |


|
static |
|
static |
|
static |
|
static |