Home
last modified time | relevance | path

Searched refs:latency_us (Results 1 – 3 of 3) sorted by relevance

/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-binance/
Dmain.c123 uint64_t latency_us, now_us; in binance_rx() local
143 latency_us = now_us - ((uint64_t)atoll(numbuf) * LWS_US_PER_MS); in binance_rx()
145 if (latency_us < bin->e_lat_range.lowest) in binance_rx()
146 bin->e_lat_range.lowest = latency_us; in binance_rx()
147 if (latency_us > bin->e_lat_range.highest) in binance_rx()
148 bin->e_lat_range.highest = latency_us; in binance_rx()
150 bin->e_lat_range.sum += latency_us; in binance_rx()
/third_party/libwebsockets/minimal-examples/ws-client/minimal-ws-client-binance/
Dmain.c224 uint64_t latency_us, now_us; in callback_minimal() local
262 latency_us = now_us - in callback_minimal()
265 if (latency_us < mco->e_lat_range.lowest) in callback_minimal()
266 mco->e_lat_range.lowest = latency_us; in callback_minimal()
267 if (latency_us > mco->e_lat_range.highest) in callback_minimal()
268 mco->e_lat_range.highest = latency_us; in callback_minimal()
270 mco->e_lat_range.sum += latency_us; in callback_minimal()
/third_party/libwebsockets/include/libwebsockets/
Dlws-timeout-timer.h161 uint32_t latency_us; /* us it may safely be delayed */ member