#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include <unistd.h>
#include <sys/time.h>
#include "misc.h"
#include "timer.h"
Go to the source code of this file.
Classes | |
struct | timer |
Macros | |
#define | SECONDS_BETWEEN_GETTIMEOFDAY_SYNCH 1.65 |
Functions | |
struct timer * | timer_add (double freq, void(*timer_tick)(struct timer *timer, void *extra), void *extra) |
void | timer_remove (struct timer *t) |
void | timer_update_frequency (struct timer *t, double new_freq) |
void | timer_start (void) |
void | timer_stop (void) |
void | timer_init (void) |
Variables | |
struct timeval | timer_start_tv |
struct timer* timer_add | ( | double | freq, |
void(*)(struct timer *timer, void *extra) | timer_tick, | ||
void * | extra | ||
) |
Definition at line 75 of file timer.cc.
References CHECK_ALLOCATION, timer::extra, timer::freq, timer::interval, timer::next_tick_at, and timer::timer_tick.
Referenced by coproc_register_write(), DEVICE_ACCESS(), and DEVINIT().
void timer_remove | ( | struct timer * | t | ) |
Definition at line 104 of file timer.cc.
Referenced by DEVICE_ACCESS().
void timer_stop | ( | void | ) |
Definition at line 244 of file timer.cc.
Referenced by debugger().
void timer_update_frequency | ( | struct timer * | t, |
double | new_freq | ||
) |
Definition at line 132 of file timer.cc.
References timer::freq, timer::interval, and timer::next_tick_at.