From ac637c3061ba5dbeb71da8b3586dbb968606dc80 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 31 May 2012 09:47:11 +0000 Subject: - error message if fail --- src/util/test_speedup.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/util/test_speedup.c') diff --git a/src/util/test_speedup.c b/src/util/test_speedup.c index 849505c24..47603d35c 100644 --- a/src/util/test_speedup.c +++ b/src/util/test_speedup.c @@ -89,13 +89,18 @@ main (int argc, char *argv[]) end_real = time (NULL); delta = GNUNET_TIME_absolute_get_difference(start, end); - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Execution time in GNUnet time: %llu ms\n", delta.rel_value); - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Execution time in system time: %llu ms\n", (end_real - start_real) * 1000); - if (delta.rel_value > ((end_real - start_real) * 1500)) + { + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Execution time in GNUnet time: %llu ms\n", delta.rel_value); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Execution time in system time: %llu ms\n", (end_real - start_real) * 1000); return 0; + } else + { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Execution time in GNUnet time: %llu ms\n", delta.rel_value); + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Execution time in system time: %llu ms\n", (end_real - start_real) * 1000); return 1; + } } /* end of test_speedup.c */ -- cgit v1.2.3