Make the time function re-entrant.