set time library variables along with detect_timers()