aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_speedup.c
diff options
context:
space:
mode:
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 */