I thought it was pretty obvious.
You have a variable that ticks (incremented from interrupt/hardware timer).
Eventually it's going to wrap-around and start from zero again.
If you try and use that for timestamping things then you have to deal with the situation of the wrap occuring during two timestamps.
You can detect the wrap around and remove it but then you have to consider that the wrap may occur multiple times etc..
Are there any coding tips/tricks to handle this in a simple way.
Not sure if you saw my answer.
If you use deltas then there is no problem with unsigned computer math, doesn't get simpler than that.
If you want to keep a time stamp, use the deltas to update a bigger number (like an unsigned 64bit counter) provided you call the update within twice the wrap around time.
If using an interrupt then you can update the bigger number there making it available to the system.
If hardware counter (usually at least 32bits) or 4294967296, you have that many ticks per check So you might get in trouble if you don't update it once a second on a 4.29 GHz processor.
Edit: actually if you don't update it once in 2 seconds on a 4.29 GHz processor because it won't wrap around twice until then