From 8c090e72d2737673926a9f32bec348e43f72e731 Mon Sep 17 00:00:00 2001 From: David Monniaux Date: Sat, 6 Apr 2019 20:41:20 +0200 Subject: Makefile for timing. We are 12% slower than gcc. --- test/monniaux/pcre2-10.32/pcre2test.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/monniaux/pcre2-10.32/pcre2test.c') diff --git a/test/monniaux/pcre2-10.32/pcre2test.c b/test/monniaux/pcre2-10.32/pcre2test.c index 10d47469..25a7c4a1 100644 --- a/test/monniaux/pcre2-10.32/pcre2test.c +++ b/test/monniaux/pcre2-10.32/pcre2test.c @@ -66,6 +66,8 @@ it references only the enabled library functions. */ #include #include +/* DM */ +#include "../clock.h" int fileno(FILE *stream); #if defined NATIVE_ZOS @@ -8109,6 +8111,10 @@ char *arg_subject = NULL; char *arg_pattern = NULL; char *arg_error = NULL; +/* DM */ + clock_prepare(); + clock_start(); + /* The offsets to the options and control bits fields of the pattern and data control blocks must be the same so that common options and controls such as "anchored" or "memory" can work for either of them from a single table entry. @@ -8785,6 +8791,9 @@ FREECONTEXTS; yield = SS$_NORMAL; /* Return values via DCL symbols */ #endif + clock_stop(); + print_total_clock(); + return yield; } -- cgit