2 ms·
I think there's a similar thing that comes up when you try to show "download speed" stats (MB/s), where you download a chunk at a time (recv buffer size). * If
by krackers 5mo ago
I think there's a similar thing that comes up when you try to show "download speed" stats (MB/s), where you download a chunk at a time (recv buffer size).
* If you compute the value as the amount of data in last chunk (usually constant except for the very last chunk) divided by time taken to receive that chunk, then it's like "FPS based on the latest frame". This can result in misleading metrics because you only update _after_ the chunk is received so slowdowns are not reported in real time. If your recv size is small, the number may also bounce around too much.
* If you show it as cumulative download / cumulative time, then it's similar to last N frames as N->\infty. This doesn't really tell you what you care about which is the "current" speed.