Added timer to tick and have a callback to write out the time every second