A recursive Timer ?
‘elegant’ is too strong perhaps, this kind of thing is headache inducing, be warned.