libcoap  4.0.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions | Variables
Clock Handling

Default implementation of internal clock. More...

Macros

#define COAP_TICKS_PER_SECOND   1024
#define coap_clock_init   coap_clock_init_impl
#define coap_ticks   coap_ticks_impl

Typedefs

typedef unsigned int coap_tick_t

Functions

static void coap_clock_init_impl (void)
static void coap_ticks_impl (coap_tick_t *t)

Variables

time_t clock_offset
 Set at startup to initialize the internal clock (time in seconds).

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 74 of file coap_time.h.

#define coap_ticks   coap_ticks_impl

Definition at line 89 of file coap_time.h.

#define COAP_TICKS_PER_SECOND   1024

Definition at line 54 of file coap_time.h.

Typedef Documentation

typedef unsigned int coap_tick_t

Definition at line 52 of file coap_time.h.

Function Documentation

static void coap_clock_init_impl ( void  )
inlinestatic

Definition at line 62 of file coap_time.h.

static void coap_ticks_impl ( coap_tick_t t)
inlinestatic

Definition at line 79 of file coap_time.h.

Variable Documentation

time_t clock_offset

Set at startup to initialize the internal clock (time in seconds).

Definition at line 40 of file net.c.