Just out of curiosity, would a vector clock[0] be applicable for your problem domain?
0 - https://en.wikipedia.org/wiki/Vector_clock