Measuring Digital System Latency from Sensing to