diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/suite/Makefile.am | 1 | ||||
-rw-r--r-- | tests/suite/mini-record-timing.c | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/suite/Makefile.am b/tests/suite/Makefile.am index cb151e9b46..22abfedf26 100644 --- a/tests/suite/Makefile.am +++ b/tests/suite/Makefile.am @@ -93,6 +93,7 @@ endif if !MACOSX noinst_LTLIBRARIES = libecore.la +mini_record_timing_LDADD = -lrt $(LDADD) eagain_cli_LDADD = libecore.la -lrt -lm -ldl -lpthread $(LDADD) nodist_eagain_cli_SOURCES = mini-eagain2.c diff --git a/tests/suite/mini-record-timing.c b/tests/suite/mini-record-timing.c index e41d45b689..a4589b26ee 100644 --- a/tests/suite/mini-record-timing.c +++ b/tests/suite/mini-record-timing.c @@ -48,7 +48,6 @@ int main() #include <errno.h> #include <time.h> -#include <timespec.h> #include <sys/time.h> #include <sys/resource.h> @@ -338,7 +337,7 @@ restart: ret = gnutls_record_send (session, text, sizeof(text)); } while (ret == GNUTLS_E_AGAIN || ret == GNUTLS_E_INTERRUPTED); /* measure peer's processing time */ - gettime(&start); + clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &start); #define TLS_RECV #ifdef TLS_RECV @@ -353,7 +352,7 @@ restart: if (taken < MAX_MEASUREMENTS(test->npoints) && ret > 0) { - gettime(&stop); + clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &stop); taken++; measurement = timespec_sub_ns(&stop, &start); prev_point_ptr->measurements[prev_point_ptr->midx] = measurement; |