time and clock related functions More...
#include <asm/param.h>
#include <linux/version.h>
#include "kal_timer.h"
#include <sys/time.h>
#include <time.h>
Go to the source code of this file.
Defines | |
#define | CPU_KHZ_TYPE unsigned long |
#define | do_gettimeofday(__tv) gettimeofday((__tv), NULL); |
Functions | |
static long long | llimd (long long ll, int mult, int div) |
static unsigned long long int | us2clock (unsigned long u) |
static unsigned long int | clock2ms (unsigned long long c) |
static unsigned long int | clock2us (unsigned long long c) |
static unsigned long int | clock2jiffies (unsigned long long c) |
static unsigned long long | sched_read_clock (void) |
static unsigned long | sched_read_clock_us (void) |
static void | rres_init_time (void) |
static void | rres_sample_time (void) |
Sample the current time, with the best available precision, into sched_time. | |
Variables | |
kal_time_t | sched_time |
used to avoid reading too frequently the time. |
time and clock related functions
Definition in file rres_time.h.