aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_speedup.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-05-31 09:47:11 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-05-31 09:47:11 +0000
commitac637c3061ba5dbeb71da8b3586dbb968606dc80 (patch)
tree20e714916fab175f5e41759f0da6df1c3fa32806 /src/util/test_speedup.c
parent2e839a61c6d4379a6b7acb23be64b9b2ad62a113 (diff)
downloadgnunet-ac637c3061ba5dbeb71da8b3586dbb968606dc80.tar.gz
gnunet-ac637c3061ba5dbeb71da8b3586dbb968606dc80.zip
- error message if fail
Diffstat (limited to 'src/util/test_speedup.c')
-rw-r--r--src/util/test_speedup.c11
1 files changed, 8 insertions, 3 deletions
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[])
89 end_real = time (NULL); 89 end_real = time (NULL);
90 delta = GNUNET_TIME_absolute_get_difference(start, end); 90 delta = GNUNET_TIME_absolute_get_difference(start, end);
91 91
92 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Execution time in GNUnet time: %llu ms\n", delta.rel_value);
93 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Execution time in system time: %llu ms\n", (end_real - start_real) * 1000);
94
95 if (delta.rel_value > ((end_real - start_real) * 1500)) 92 if (delta.rel_value > ((end_real - start_real) * 1500))
93 {
94 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Execution time in GNUnet time: %llu ms\n", delta.rel_value);
95 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Execution time in system time: %llu ms\n", (end_real - start_real) * 1000);
96 return 0; 96 return 0;
97 }
97 else 98 else
99 {
100 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Execution time in GNUnet time: %llu ms\n", delta.rel_value);
101 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Execution time in system time: %llu ms\n", (end_real - start_real) * 1000);
98 return 1; 102 return 1;
103 }
99} 104}
100 105
101/* end of test_speedup.c */ 106/* end of test_speedup.c */