uses time_now instead of time