Clearly it states that message size is suppose to be defined in bytes.
But then again, looking at the core.py module, calculation of latency goes like this:
Here transmit has a comment at the end of a line that it's defined in MBITS (Mb) but in fact its presented in MBAJTS (MB) because size_bits variable is actually presented in bytes (we can see that in 1st line of code).
For specific use-cases this confused me because I thought latency was calculated using bits and not bytes because of the comment # MBITS! and variable name size_bits
Thanks Marko for your point. That function is a little mesh and the name of the variables does not help.
I will try to fix with the right nomenclature since the idea is to work with Bytes, and MB.
Constructor of Message class in application.py module is defined like this:
Clearly it states that message size is suppose to be defined in bytes. But then again, looking at the core.py module, calculation of latency goes like this:
Here
transmit
has a comment at the end of a line that it's defined in MBITS (Mb) but in fact its presented in MBAJTS (MB) becausesize_bits
variable is actually presented in bytes (we can see that in 1st line of code).For specific use-cases this confused me because I thought latency was calculated using bits and not bytes because of the comment
# MBITS!
and variable namesize_bits