Write time to console