print in a timed loop