From fdc392319c5432104ef13c0b6c78004935015659 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 30 Oct 2017 16:28:38 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_network.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_network.c b/iguana/exchanges/LP_network.c index 2e211c348..74779da5d 100644 --- a/iguana/exchanges/LP_network.c +++ b/iguana/exchanges/LP_network.c @@ -160,7 +160,8 @@ void _LP_sendqueueadd(uint32_t crc32,int32_t sock,uint8_t *msg,int32_t msglen,in bits256 LP_calc_magic(uint8_t *msg,int32_t len) { - static uint32_t maxn; bits256 magic,hash,pubkey,shared; int32_t n = 0; + static uint32_t maxn; bits256 magic,hash,pubkey,shared; int32_t n = 0; double millis; + millis = OS_milliseconds(); vcalc_sha256(0,hash.bytes,msg,len); while ( 1 ) { @@ -171,6 +172,7 @@ bits256 LP_calc_magic(uint8_t *msg,int32_t len) break; n++; } + printf("millis %.3f\n",OS_milliseconds() - millis); if ( n > maxn ) { printf("LP_calc_magic maxn.%d <- %d\n",maxn,n);