Tizen RT Libs&Environment
v1.0 D5
|
Clock APIs. More...
Go to the source code of this file.
Macros | |
#define | __HAVE_KERNEL_GLOBALS 1 |
#define | NSEC_PER_SEC 1000000000 |
#define | USEC_PER_SEC 1000000 |
#define | MSEC_PER_SEC 1000 |
#define | DSEC_PER_SEC 10 |
#define | NSEC_PER_DSEC 100000000 |
#define | USEC_PER_DSEC 100000 |
#define | MSEC_PER_DSEC 100 |
#define | NSEC_PER_MSEC 1000000 |
#define | USEC_PER_MSEC 1000 |
#define | NSEC_PER_USEC 1000 |
#define | USEC_PER_TICK (10000) |
#define | TICK_PER_DSEC (USEC_PER_DSEC / USEC_PER_TICK) /* Truncates! */ |
#define | TICK_PER_SEC (USEC_PER_SEC / USEC_PER_TICK) /* Truncates! */ |
#define | TICK_PER_MSEC (USEC_PER_MSEC / USEC_PER_TICK) /* Truncates! */ |
#define | MSEC_PER_TICK (USEC_PER_TICK / USEC_PER_MSEC) /* Truncates! */ |
#define | NSEC_PER_TICK (USEC_PER_TICK * NSEC_PER_USEC) /* Exact */ |
#define | NSEC2TICK(nsec) (((nsec)+(NSEC_PER_TICK/2))/NSEC_PER_TICK) /* Rounds */ |
#define | USEC2TICK(usec) (((usec)+(USEC_PER_TICK/2))/USEC_PER_TICK) /* Rounds */ |
#define | MSEC2TICK(msec) (((msec)+(MSEC_PER_TICK/2))/MSEC_PER_TICK) /* Rounds */ |
#define | DSEC2TICK(dsec) MSEC2TICK((dsec) * MSEC_PER_DSEC) /* Rounds */ |
#define | SEC2TICK(sec) MSEC2TICK((sec) * MSEC_PER_SEC) /* Rounds */ |
#define | TICK2NSEC(tick) ((tick) * NSEC_PER_TICK) /* Exact */ |
#define | TICK2USEC(tick) ((tick) * USEC_PER_TICK) /* Exact */ |
#define | TICK2MSEC(tick) ((tick)*MSEC_PER_TICK) /* Exact */ |
#define | TICK2DSEC(tick) (((tick)+(TICK_PER_DSEC/2))/TICK_PER_DSEC) /* Rounds */ |
#define | TICK2SEC(tick) (((tick)+(TICK_PER_SEC/2))/TICK_PER_SEC) /* Rounds */ |
#define | EXTERN extern |
#define | clock_systimer() g_system_timer |
Typedefs | |
typedef uint32_t | systime_t |
Variables | |
EXTERN volatile systime_t | g_system_timer |
Clock APIs.
Definition in file clock.h.