replace obsolete call to ftime(3)
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 3 Feb 2020 14:35:38 +0000 (15:35 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 4 Feb 2020 14:15:45 +0000 (15:15 +0100)
commit4f1a78cac519d257c52cf3677175689b70f796c0
tree3446212a6a9955ee0f399dee359f1bd754a89f87
parentc3df2bda5837805d87bc2f8d6ff7c8bca8e1d6ff
replace obsolete call to ftime(3)

ftime() and timeb.h have been deprecated since POSIX 2008 and
will be removed in future versions of glibc [0]. Replace them
with (probably faster) calls to clock_gettime(2).

[0] https://sourceware.org/ml/libc-announce/2020/msg00001.html
src/timefunc.cpp