Not sure if this will help but in my post: Evaluated Uno Q Router / Bridge Latency with MAX31855 I proposed a way to evaluate the latency using python. This latency number is a composite of all the processes between the MCU and Python calling the provided method.