Timer programming: take care that delta might be 0.