registerTimes function