SNTP definitions. More...

Detailed Description

#include <stdint.h>
#include <time.h>
#include "net/ntp_packet.h"
#include "net/sock/udp.h"
#include "xtimer.h"
+ Include dependency graph for sntp.h:

Go to the source code of this file.

Functions

int sntp_sync (sock_udp_ep_t *server, uint32_t timeout)
 Synchronize with time server. More...
 
int64_t sntp_get_offset (void)
 Get real time offset from system time as returned by xtimer_now64() More...
 
static uint64_t sntp_get_unix_usec (void)
 Get time in microseconds from 1970-01-01 00:00:00 UTC. More...