TizenRT Libs&Environment  v2.0 M2

Provides APIs for Clock. More...

Collaboration diagram for CLOCK:

Files

file  clock.h
 Clock APIs.
 

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
 

Variables

EXTERN volatile clock_t g_system_timer
 

Detailed Description

Provides APIs for Clock.

Macro Definition Documentation

#define __HAVE_KERNEL_GLOBALS   1

Definition at line 117 of file clock.h.

#define clock_systimer ( )    g_system_timer

Definition at line 236 of file clock.h.

#define DSEC2TICK (   dsec)    MSEC2TICK((dsec) * MSEC_PER_DSEC) /* Rounds */

Definition at line 181 of file clock.h.

#define DSEC_PER_SEC   10

Definition at line 133 of file clock.h.

#define EXTERN   extern

Definition at line 222 of file clock.h.

#define MSEC2TICK (   msec)    (((msec)+(MSEC_PER_TICK/2))/MSEC_PER_TICK) /* Rounds */

Definition at line 176 of file clock.h.

#define MSEC_PER_DSEC   100

Definition at line 136 of file clock.h.

#define MSEC_PER_SEC   1000

Definition at line 132 of file clock.h.

#define MSEC_PER_TICK   (USEC_PER_TICK / USEC_PER_MSEC) /* Truncates! */

Definition at line 169 of file clock.h.

#define NSEC2TICK (   nsec)    (((nsec)+(NSEC_PER_TICK/2))/NSEC_PER_TICK) /* Rounds */

Definition at line 172 of file clock.h.

#define NSEC_PER_DSEC   100000000

Definition at line 134 of file clock.h.

#define NSEC_PER_MSEC   1000000

Definition at line 137 of file clock.h.

#define NSEC_PER_SEC   1000000000

Definition at line 130 of file clock.h.

#define NSEC_PER_TICK   (USEC_PER_TICK * NSEC_PER_USEC) /* Exact */

Definition at line 170 of file clock.h.

#define NSEC_PER_USEC   1000

Definition at line 139 of file clock.h.

#define SEC2TICK (   sec)    MSEC2TICK((sec) * MSEC_PER_SEC) /* Rounds */

Definition at line 182 of file clock.h.

#define TICK2DSEC (   tick)    (((tick)+(TICK_PER_DSEC/2))/TICK_PER_DSEC) /* Rounds */

Definition at line 193 of file clock.h.

#define TICK2MSEC (   tick)    ((tick)*MSEC_PER_TICK) /* Exact */

Definition at line 188 of file clock.h.

#define TICK2NSEC (   tick)    ((tick) * NSEC_PER_TICK) /* Exact */

Definition at line 184 of file clock.h.

#define TICK2SEC (   tick)    (((tick)+(TICK_PER_SEC/2))/TICK_PER_SEC) /* Rounds */

Definition at line 194 of file clock.h.

#define TICK2USEC (   tick)    ((tick) * USEC_PER_TICK) /* Exact */

Definition at line 185 of file clock.h.

#define TICK_PER_DSEC   (USEC_PER_DSEC / USEC_PER_TICK) /* Truncates! */

Definition at line 166 of file clock.h.

#define TICK_PER_MSEC   (USEC_PER_MSEC / USEC_PER_TICK) /* Truncates! */

Definition at line 168 of file clock.h.

#define TICK_PER_SEC   (USEC_PER_SEC / USEC_PER_TICK) /* Truncates! */

Definition at line 167 of file clock.h.

#define USEC2TICK (   usec)    (((usec)+(USEC_PER_TICK/2))/USEC_PER_TICK) /* Rounds */

Definition at line 173 of file clock.h.

#define USEC_PER_DSEC   100000

Definition at line 135 of file clock.h.

#define USEC_PER_MSEC   1000

Definition at line 138 of file clock.h.

#define USEC_PER_SEC   1000000

Definition at line 131 of file clock.h.

#define USEC_PER_TICK   (10000)

Definition at line 158 of file clock.h.

Variable Documentation

EXTERN volatile clock_t g_system_timer

Definition at line 233 of file clock.h.