[svn] gcry - r1342 - trunk/tests

svn author wk cvs at cvs.gnupg.org
Thu Sep 18 17:50:42 CEST 2008


Author: wk
Date: 2008-09-18 17:50:42 +0200 (Thu, 18 Sep 2008)
New Revision: 1342

Modified:
   trunk/tests/benchmark.c
Log:
Windows fix.


Modified: trunk/tests/benchmark.c
===================================================================
--- trunk/tests/benchmark.c	2008-09-18 15:25:49 UTC (rev 1341)
+++ trunk/tests/benchmark.c	2008-09-18 15:50:42 UTC (rev 1342)
@@ -321,7 +321,7 @@
   t2 += (((unsigned long long)stopped_at.user_time.dwHighDateTime << 32)
         + stopped_at.user_time.dwLowDateTime);
   t = (t2 - t1)/10000;
-  snprintf (buf, sizeof buf, "%5lums", (unsigned long)t );
+  snprintf (buf, sizeof buf, "%5.0fms", (double)t );
 #else
   snprintf (buf, sizeof buf, "%5.0fms",
             (((double) (stopped_at - started_at))/CLOCKS_PER_SEC)*10000000);




More information about the Gnupg-commits mailing list