From 9b1065bcad0e82350e3e72e474ae425293defe42 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Mon, 3 May 2021 12:24:53 +0200 Subject: -remove (hopefully) unnecessary clamping --- src/gnsrecord/test_gnsrecord_crypto.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/gnsrecord/test_gnsrecord_crypto.c') diff --git a/src/gnsrecord/test_gnsrecord_crypto.c b/src/gnsrecord/test_gnsrecord_crypto.c index 9394f562d..b9b2b5ba5 100644 --- a/src/gnsrecord/test_gnsrecord_crypto.c +++ b/src/gnsrecord/test_gnsrecord_crypto.c @@ -148,15 +148,29 @@ run (void *cls, { struct GNUNET_IDENTITY_PrivateKey privkey; struct GNUNET_IDENTITY_PrivateKey privkey_ed; + struct GNUNET_TIME_Absolute start; + struct GNUNET_TIME_Absolute end; privkey.type = htonl (GNUNET_GNSRECORD_TYPE_PKEY); GNUNET_CRYPTO_ecdsa_key_create (&privkey.ecdsa_key); + start = GNUNET_TIME_absolute_get (); test_with_type (&privkey); + end = GNUNET_TIME_absolute_get (); + printf ("Time: %llu ms\n", (unsigned long long) + GNUNET_TIME_absolute_get_difference (start, + end).rel_value_us); privkey_ed.type = htonl (GNUNET_GNSRECORD_TYPE_EDKEY); GNUNET_CRYPTO_eddsa_key_create (&privkey_ed.eddsa_key); + start = GNUNET_TIME_absolute_get (); test_with_type(&privkey_ed); + end = GNUNET_TIME_absolute_get (); + printf ("Time: %llu ms\n", (unsigned long long) + GNUNET_TIME_absolute_get_difference (start, + end).rel_value_us); + + } -- cgit v1.2.3