Update the exttimestamp field with timestamp. For the first call of the method, exttimestamp
should point to a location with a value of -1. This function makes sure that the returned value is a constantly increasing value even in
the case where there is a timestamp wraparound.
| exttimestamp | a previous extended timestamp |
| timestamp | a new timestamp |
The extended timestamp of timestamp. |