tinydtls  0.8.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Macros | Typedefs | Functions
Clock Handling

Macros

#define CLOCK_SECOND   1000
 
#define DTLS_TICKS_PER_SECOND   CLOCK_SECOND
 

Typedefs

typedef uint32_t clock_time_t
 
typedef clock_time_t dtls_tick_t
 

Functions

void dtls_clock_init (void)
 
void dtls_ticks (dtls_tick_t *t)
 

Detailed Description

Default implementation of internal clock. You should redefine this if you do not have time() and gettimeofday().

Macro Definition Documentation

#define CLOCK_SECOND   1000

Definition at line 52 of file dtls_time.h.

#define DTLS_TICKS_PER_SECOND   CLOCK_SECOND

Definition at line 61 of file dtls_time.h.

Typedef Documentation

typedef uint32_t clock_time_t

Definition at line 55 of file dtls_time.h.

Definition at line 58 of file dtls_time.h.

Function Documentation

void dtls_clock_init ( void  )

Definition at line 54 of file dtls_time.c.

void dtls_ticks ( dtls_tick_t t)

Definition at line 67 of file dtls_time.c.