mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Measure max & min durations within the confines of MAX_SAMPLE_RUNS
This commit is contained in:
@ -254,12 +254,12 @@
|
||||
}\
|
||||
else {\
|
||||
delta = current_time(0) - prev;\
|
||||
}\
|
||||
if (runs < MAX_SAMPLE_RUNS) {\
|
||||
if (max < delta)\
|
||||
max = delta;\
|
||||
else if (min > delta)\
|
||||
min = delta;\
|
||||
}\
|
||||
if (runs < MAX_SAMPLE_RUNS) {\
|
||||
deltas[runs] = delta;\
|
||||
sum += delta;\
|
||||
runs++;\
|
||||
|
Reference in New Issue
Block a user