different implementation of delta_milliseconds