gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r21649 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r21649 - gnunet/src/util
Date: Thu, 31 May 2012 11:47:11 +0200

Author: wachs
Date: 2012-05-31 11:47:11 +0200 (Thu, 31 May 2012)
New Revision: 21649

Modified:
   gnunet/src/util/test_speedup.c
Log:
- error message if fail


Modified: gnunet/src/util/test_speedup.c
===================================================================
--- gnunet/src/util/test_speedup.c      2012-05-30 21:43:09 UTC (rev 21648)
+++ gnunet/src/util/test_speedup.c      2012-05-31 09:47:11 UTC (rev 21649)
@@ -89,13 +89,18 @@
   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 */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]