This might be interesting:
http://www.6809.org.uk/tmp/da/tests/
It's a small (really hacky though) bit of code that tests timing things off various VDG signals (FS rising & falling edge, HS rising & falling edge). I used it to adjust the timing of XRoar, and was reminded of it by discussion in the "new dragon game" thread.