On the ZX Spectrum, you get an interrupt every frame. As I recall, the operating system uses this to periodically scan the keyboard and probably other things also, but you can have your own routine called instead/in addition.
On the Commodore 64, you can somehow program the video chip to produce an interrupt on whichever scanline you choose, and this can somehow be directed to whatever the programmer chooses.
I would like to know if this kind of facility is available on MS-DOS computers. If I write a program for MS-DOS, is there a way to command that the next time the interrupt fires, jump to this routine? Or is there a way to command that in 153 milliseconds, jump to that address?