implemented a monotonic timestamping function, unaffected from system time changes

This commit is contained in:
Martin Willi
2009-08-31 15:03:35 +02:00
parent 1d39663f7a
commit 3f310c0d1f
4 changed files with 55 additions and 3 deletions
+6
View File
@@ -908,6 +908,12 @@ AC_SEARCH_LIBS(socket, socket, [SOCKLIB=$LIBS],
)
AC_SUBST(SOCKLIB)
dnl FreeBSD has clock_gettime in libc, Linux needs librt
LIBS=""
AC_SEARCH_LIBS(clock_gettime, rt, [RTLIB=$LIBS])
AC_CHECK_FUNCS(clock_gettime)
AC_SUBST(RTLIB)
LIBS=$saved_LIBS
dnl ======================