extras/timekeeping -- provide POSIX-like interface

Provide POSIX-like timekeeping utilities using system clock
to support monotonic, accurate, timezone-aware time

Implements settimeofday(), gettimeofday(), and adjtime()
Utilizes setenv() and tzset()

See README.timekeeping.md for more details
This commit is contained in:
Jeff Kletsky 2018-02-22 17:21:18 -08:00
parent 49343e9c68
commit 6902615525
16 changed files with 2630 additions and 0 deletions

View file

@ -0,0 +1,20 @@
PROGRAM=timekeeping_sntp_run
# Test the use of extras/timekeeping with LWIP SNTP
EXTRA_COMPONENTS = extras/timekeeping
# Can work for broadcast or poll
# (assuming you have NTP broadcast already configured on the network)
# Broadcast / poll and hosts for poll set in timekeeping_sntp_run.c
# SNTP parameters set at the top of lwipopts.h
# To set then only log time difference (rather than correct the clock)
# define TIMEKEEPING_SET_AND_MEASURE_ONLY
# PROGRAM_CFLAGS = $(CFLAGS) -DTIMEKEEPING_SET_AND_MEASURE_ONLY
include ../../../../common.mk