On Dienstag, 19. Juli 2016 22:44:09 CEST Sven Eckelmann wrote:
gettimeofday is not monotonic. It would give wrong results in some situation like leap seconds, when switching between daylight saving time and non-DST, NTP changes the time or when the administrator of the system changes it manually. The function is also obsolete since POSIX.1-2008.
clock_gettime is recommended to get a monotonic timesource and as general replacement of gettimeofday.
Signed-off-by: Sven Eckelmann sven@narfation.org
Makefile | 2 +- functions.c | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-)
Applied in ef7cfaa81f72292f67afe50303ac657f41280853 [1].
Kind regards, Sven
[1] https://git.open-mesh.org/batctl.git/commit/ef7cfaa81f72292f67afe50303ac657f...