projects
/
libgcrypt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27b1bcd
)
Windows fix.
libgcrypt-1.4.3
author
Werner Koch
<wk@gnupg.org>
Thu, 18 Sep 2008 15:50:42 +0000
(15:50 +0000)
committer
Werner Koch
<wk@gnupg.org>
Thu, 18 Sep 2008 15:50:42 +0000
(15:50 +0000)
tests/benchmark.c
patch
|
blob
|
history
diff --git
a/tests/benchmark.c
b/tests/benchmark.c
index
7f218a6
..
452bef9
100644
(file)
--- a/
tests/benchmark.c
+++ b/
tests/benchmark.c
@@
-321,7
+321,7
@@
elapsed_time (void)
t2 += (((unsigned long long)stopped_at.user_time.dwHighDateTime << 32)
+ stopped_at.user_time.dwLowDateTime);
t = (t2 - t1)/10000;
- snprintf (buf, sizeof buf, "%5
lums", (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);