Time-base error compensation using a digital memory with independent write-in and read-out clock generators