millis_t is long - divisions take for ever. Return a kind of millisecond instead of microsecond - divided by 1024 instead of 1000 for speed. (2.4% error) That does not matter because block_buffer_runtime is already a too short estimation. Shrink the return-type.
109 KiB
Executable File
109 KiB
Executable File