Timing in reward and decision processes