I have been looking at the Timesleuth lag testing device for a long time, but was never able to figure out how to build/buy one. This looke like a very cheap option that uses the same code, so could be a fun build.
You can read more about it here: https://github.com/pthalin/video_lag_tester