diff options
author | Werner Koch <wk@gnupg.org> | 2008-09-18 15:50:42 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2008-09-18 15:50:42 +0000 |
commit | 336430669e56aa26196acac0526deeb231c395d7 (patch) | |
tree | 18d2711828e9a4d19632aac3a621d472e3ac9576 | |
parent | 27b1bcd33d1be4a5f1ed210d3d9015e6c835ac64 (diff) | |
download | libgcrypt-336430669e56aa26196acac0526deeb231c395d7.tar.gz |
Windows fix.
-rw-r--r-- | tests/benchmark.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/benchmark.c b/tests/benchmark.c index 7f218a61..452bef91 100644 --- 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, "%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); |