To anticipate moving this code over to oslo.utils so that
it can be shared by taskflow, oslo.messaging (and others) add
a maximum elapsed value to the elapsed method which will
limit the maximum value it returns.
Change-Id: Ica85cbd39b34211ac04cd58dcbdc499a778487b0