How the time stamps are implemented
Use the value of the system clock as the time stamp. That is a transaction's time stamp is equivalent to the value of the clock when the transaction enters the system.
Use a logical counter that is increased after a new timestamp has been assigned; that is the time stamp is equivalent to the value of the counter.