libcoap  4.1.1
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Macros | Functions
Clock Handling

Default implementation of internal clock. More...

Macros

#define coap_clock_init   coap_clock_init_impl
 
#define coap_ticks   coap_ticks_impl
 

Functions

static void coap_clock_init_impl (void)
 
static void coap_ticks_impl (coap_tick_t *t)
 
static int coap_time_lt (coap_tick_t a, coap_tick_t b)
 Returns 1 if and only if a is less than b where less is defined on a signed data type. More...
 
static int coap_time_le (coap_tick_t a, coap_tick_t b)
 Returns 1 if and only if a is less than or equal b where less is defined on a signed data type. More...
 

Detailed Description

Default implementation of internal clock.

You should redefine this if you do not have time() and gettimeofday().

Macro Definition Documentation

#define coap_clock_init   coap_clock_init_impl

Definition at line 121 of file coap_time.h.

#define coap_ticks   coap_ticks_impl

Definition at line 136 of file coap_time.h.

Function Documentation

static void coap_clock_init_impl ( void  )
inlinestatic

Definition at line 109 of file coap_time.h.

static void coap_ticks_impl ( coap_tick_t *  t)
inlinestatic

Definition at line 126 of file coap_time.h.

static int coap_time_le ( coap_tick_t  a,
coap_tick_t  b 
)
inlinestatic

Returns 1 if and only if a is less than or equal b where less is defined on a signed data type.

Definition at line 153 of file coap_time.h.

static int coap_time_lt ( coap_tick_t  a,
coap_tick_t  b 
)
inlinestatic

Returns 1 if and only if a is less than b where less is defined on a signed data type.

Definition at line 144 of file coap_time.h.