diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-27 19:36:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-27 19:36:14 +0000 |
commit | 9cefd9c5522797b132749ca7d99a930007d28347 (patch) | |
tree | 63aa5de219bbd5f0d23f5f0affd418eee5bdd494 /src/util/test_crypto_rsa.c | |
parent | a6a4bf9797ecf078179a102f52d1e30a4987bf03 (diff) | |
download | gnunet-9cefd9c5522797b132749ca7d99a930007d28347.tar.gz gnunet-9cefd9c5522797b132749ca7d99a930007d28347.zip |
-converting more places to use STRINGS_relative_time_to_string
Diffstat (limited to 'src/util/test_crypto_rsa.c')
-rw-r--r-- | src/util/test_crypto_rsa.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/util/test_crypto_rsa.c b/src/util/test_crypto_rsa.c index 0113b7ad0..fcaf78612 100644 --- a/src/util/test_crypto_rsa.c +++ b/src/util/test_crypto_rsa.c | |||
@@ -81,9 +81,10 @@ testEncryptDecrypt () | |||
81 | continue; | 81 | continue; |
82 | } | 82 | } |
83 | } | 83 | } |
84 | printf ("%d RSA encrypt/decrypt operations %llums (%d failures)\n", ITER, | 84 | printf ("%d RSA encrypt/decrypt operations %s (%d failures)\n", |
85 | (unsigned long long) | 85 | ITER, |
86 | GNUNET_TIME_absolute_get_duration (start).rel_value, ok); | 86 | GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration (start), GNUNET_YES), |
87 | ok); | ||
87 | if (ok == 0) | 88 | if (ok == 0) |
88 | return GNUNET_OK; | 89 | return GNUNET_OK; |
89 | return GNUNET_SYSERR; | 90 | return GNUNET_SYSERR; |
@@ -169,9 +170,10 @@ testEncryptDecryptSK () | |||
169 | continue; | 170 | continue; |
170 | } | 171 | } |
171 | } | 172 | } |
172 | printf ("%d RSA encrypt/decrypt SK operations %llums (%d failures)\n", ITER, | 173 | printf ("%d RSA encrypt/decrypt SK operations %s (%d failures)\n", |
173 | (unsigned long long) | 174 | ITER, |
174 | GNUNET_TIME_absolute_get_duration (start).rel_value, ok); | 175 | GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration (start), GNUNET_YES), |
176 | ok); | ||
175 | if (ok != 0) | 177 | if (ok != 0) |
176 | return GNUNET_SYSERR; | 178 | return GNUNET_SYSERR; |
177 | return GNUNET_OK; | 179 | return GNUNET_OK; |
@@ -220,9 +222,8 @@ testSignVerify () | |||
220 | continue; | 222 | continue; |
221 | } | 223 | } |
222 | } | 224 | } |
223 | printf ("%d RSA sign/verify operations %llums\n", ITER, | 225 | printf ("%d RSA sign/verify operations %s\n", ITER, |
224 | (unsigned long long) | 226 | GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration (start), GNUNET_YES)); |
225 | GNUNET_TIME_absolute_get_duration (start).rel_value); | ||
226 | return ok; | 227 | return ok; |
227 | } | 228 | } |
228 | 229 | ||