Commit 90bc3717 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

owen pointed out a problem with the ftime fix, gettimeofday() was not

* configure.in xmllint.c: owen pointed out a problem with the
ftime fix, gettimeofday() was not detected by configure and
the ftime header wasn't included, dohhh
Daniel
parent 8c1ae606
Thu Mar 7 16:11:35 CET 2002 Daniel Veillard <daniel@veillard.com>
* configure.in xmllint.c: owen pointed out a problem with the
ftme fix, gettimeofday() was not detected by configure and
the ftime header wasn't included, dohhh
Thu Mar 7 12:19:36 CET 2002 Daniel Veillard <daniel@veillard.com>
* configure.in xmllint.c: trying to fix #71457 for timing
......
......@@ -102,7 +102,7 @@ dnl Checks for library functions.
AC_FUNC_STRFTIME
AC_CHECK_FUNCS(strdup strndup strerror)
AC_CHECK_FUNCS(finite isnand fp_class class fpclass)
AC_CHECK_FUNCS(strftime localtime ftime)
AC_CHECK_FUNCS(strftime localtime gettimeofday ftime)
AC_CHECK_FUNCS(stat _stat signal)
dnl Checking the standard string functions availability
......
......@@ -29,6 +29,9 @@
#endif
#endif /* _WIN32 */
#ifdef HAVE_SYS_TIMEB_H
#include <sys/timeb.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
......@@ -192,12 +195,14 @@ endTimer(const char *format, ...)
fprintf(stderr, " took %ld ms\n", msec);
}
#elif defined(HAVE_TIME_H)
/*
* No gettimeofday function, so we have to make do with calling clock.
* This is obviously less accurate, but there's little we can do about
* that.
*/
#ifndef CLOCKS_PER_SEC
#define CLOCKS_PER_SEC 100
#endif
static clock_t begin, end;
static void
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment