I could not find a lot of precedence for this, because most time daemons do not actually look at the value of olddelta. Account for olddelta getting stuck at 1ms, and for a NULL value of delta being treated as an error condition.