I need to deal with a counter that gives me ticks for my application. The counter is 32bits so what i need to know is how to deal with it when it wraps. for example:
I h
Assuming you're dealing with unsigned types, you can check for wrapping pretty easily --
if (timestamp + shifftime < timestamp) it_wrapped();