test-get-time.c File Reference

#include <sys/time.h>
#include <stdio.h>

Go to the source code of this file.

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 long sched_read_clock (void)
static unsigned long sched_read_clock_us (void)
int main ()

Variables

unsigned long long int sched_time
 used to avoid reading too frequently the time.
unsigned long cpu_khz
unsigned long fast_gettimeoffset_quotient

Function Documentation

static unsigned long int clock2ms ( unsigned long long  c  )  [inline, static]

Definition at line 16 of file test-get-time.c.

References fast_gettimeoffset_quotient, and llimd().

static unsigned long int clock2us ( unsigned long long  c  )  [inline, static]

Definition at line 21 of file test-get-time.c.

References fast_gettimeoffset_quotient.

Referenced by main(), and sched_read_clock_us().

static long long llimd ( long long  ll,
int  mult,
int  div 
) [inline, static]

Definition at line 40 of file test-get-time.c.

Referenced by clock2jiffies(), clock2ms(), clock2subjiffies(), main(), and us2clock().

int main (  ) 

Definition at line 55 of file test-get-time.c.

References clock2us(), fast_gettimeoffset_quotient, llimd(), and sched_read_clock().

static unsigned long long sched_read_clock ( void   )  [inline, static]

Definition at line 26 of file test-get-time.c.

Referenced by main(), and sched_read_clock_us().

static unsigned long sched_read_clock_us ( void   )  [inline, static]

Definition at line 34 of file test-get-time.c.

References clock2us(), and sched_read_clock().

Referenced by rres_read_qsup().

static unsigned long long int us2clock ( unsigned long  u  )  [inline, static]

Definition at line 11 of file test-get-time.c.

References cpu_khz, and llimd().

Generated on Mon Aug 2 22:39:17 2010 for qosres by  doxygen 1.6.3