fixed print time and clock functionality