Did you see warning at building?
"export LIBS=-lrt" is needed for linux.
> if (opt_userstat_running) {
>#ifdef HAVE_CLOCK_GETTIME
> /* get start cputime */
> if (!(cputime_error = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp)))
> start_cpu_nsecs = tp.tv_sec*1000000000.0+tp.tv_nsec;
>#else
>#warning : HAVE_CLOCK_GETTIME is disabled.
>#warning : Most systems require librt library to use the function clock_gettime().
>#warning : Did you set environment when ./configure ? (e.g. "export LIBS=-lrt" for sh)
>#endif
Did you see warning at building?
"export LIBS=-lrt" is needed for linux.
> if (opt_userstat_ running) { CLOCK_THREAD_ CPUTIME_ ID, &tp))) 1000000000. 0+tp.tv_ nsec;
>#ifdef HAVE_CLOCK_GETTIME
> /* get start cputime */
> if (!(cputime_error = clock_gettime(
> start_cpu_nsecs = tp.tv_sec*
>#else
>#warning : HAVE_CLOCK_GETTIME is disabled.
>#warning : Most systems require librt library to use the function clock_gettime().
>#warning : Did you set environment when ./configure ? (e.g. "export LIBS=-lrt" for sh)
>#endif