gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r26582 - gnunet/src/util
Date: Sat, 23 Mar 2013 20:46:18 +0100

Author: grothoff
Date: 2013-03-23 20:46:17 +0100 (Sat, 23 Mar 2013)
New Revision: 26582

Modified:
   gnunet/src/util/perf_crypto_hash.c
Log:
-cleanup

Modified: gnunet/src/util/perf_crypto_hash.c
===================================================================
--- gnunet/src/util/perf_crypto_hash.c  2013-03-22 17:33:59 UTC (rev 26581)
+++ gnunet/src/util/perf_crypto_hash.c  2013-03-23 19:46:17 UTC (rev 26582)
@@ -25,10 +25,10 @@
  */
 #include "platform.h"
 #include "gnunet_common.h"
-#include "gnunet_crypto_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 #include <gauger.h>
 
+
 static void
 perfHash ()
 {
@@ -50,6 +50,7 @@
   GNUNET_free (buf);
 }
 
+
 int
 main (int argc, char *argv[])
 {
@@ -57,9 +58,9 @@
 
   start = GNUNET_TIME_absolute_get ();
   perfHash ();
-  printf ("Hash perf took %llu ms\n",
-          (unsigned long long)
-          GNUNET_TIME_absolute_get_duration (start).rel_value);
+  printf ("Hash perf took %s\n",
+          GNUNET_STRINGS_relative_time_to_string 
(GNUNET_TIME_absolute_get_duration (start),
+                                                 GNUNET_YES));
   GAUGER ("UTIL", "Cryptographic hashing",
           1024 * 64 * 1024 / (1 +
                               GNUNET_TIME_absolute_get_duration
@@ -67,4 +68,4 @@
   return 0;
 }
 
-/* end of hashperf.c */
+/* end of perf_crypto_hash.c */




reply via email to

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