diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-10-27 09:21:14 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-10-27 09:21:14 +0000 |
commit | 71f77f1be3d6e2da1b88fe4a4fdd44c3c69b5325 (patch) | |
tree | 5570130fdab90ad02f4b5bfda414d13161f0f3d1 /src/util/test_crypto_ksk.c | |
parent | 1d7368a52af332af35ec6de22affef4f5f0c1da4 (diff) | |
download | gnunet-71f77f1be3d6e2da1b88fe4a4fdd44c3c69b5325.tar.gz gnunet-71f77f1be3d6e2da1b88fe4a4fdd44c3c69b5325.zip |
Changed GNUNET_TIME_Absolute and GNUNET_TIME_Relative to allow safe comparisons between time values
Diffstat (limited to 'src/util/test_crypto_ksk.c')
-rw-r--r-- | src/util/test_crypto_ksk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/test_crypto_ksk.c b/src/util/test_crypto_ksk.c index 2a8d9c969..74f88d5bf 100644 --- a/src/util/test_crypto_ksk.c +++ b/src/util/test_crypto_ksk.c | |||
@@ -171,7 +171,7 @@ testEncryptDecrypt (struct GNUNET_CRYPTO_RsaPrivateKey *hostkey) | |||
171 | printf ("%d RSA encrypt/decrypt operations %llums (%d failures)\n", | 171 | printf ("%d RSA encrypt/decrypt operations %llums (%d failures)\n", |
172 | ITER, | 172 | ITER, |
173 | (unsigned long long) | 173 | (unsigned long long) |
174 | GNUNET_TIME_absolute_get_duration (start).value, ok); | 174 | GNUNET_TIME_absolute_get_duration (start).rel_value, ok); |
175 | if (ok == 0) | 175 | if (ok == 0) |
176 | return GNUNET_OK; | 176 | return GNUNET_OK; |
177 | else | 177 | else |
@@ -222,7 +222,7 @@ testSignVerify (struct GNUNET_CRYPTO_RsaPrivateKey *hostkey) | |||
222 | printf ("%d RSA sign/verify operations %llums\n", | 222 | printf ("%d RSA sign/verify operations %llums\n", |
223 | ITER, | 223 | ITER, |
224 | (unsigned long long) | 224 | (unsigned long long) |
225 | GNUNET_TIME_absolute_get_duration (start).value); | 225 | GNUNET_TIME_absolute_get_duration (start).rel_value); |
226 | return ok; | 226 | return ok; |
227 | } | 227 | } |
228 | 228 | ||