I'm using [stb-tester](http://stb-tester.com) to measure the latency of my set-top box UI.  The test script looks like:


    def test_measure_latency():
        stbt.press("KEY_MENU")
        start = time.time()
        m = wait_for_match("menu.png")
        print "Latency is %ims" % int(m.time - start)

I am consistently seeing the stb-tester timing of latencies that is 50~70 msec less (i.e., faster) than the value when analyzing a IR detector / high-speed (240 fps) video camera capture of a connected TV.

What is the reason for this?