Closed fabiolimace closed 2 years ago
Added a drift tolerance of 10 seconds to preserve monotonicity when the system clock is adjusted by NTP after a small clock drift or when the system clock jumps back by 1 second due to leap second.
The counter is incremented when the current time:
The timestamp is also incremented if the counter is exceeded. Now the TSID factory doesn't have to wait for the next millisecond when the counter overruns. Therefore, there is no longer any speed limit for generating TSIDs.
Released version v4.2.0.
Reopen for final adjustment.
Released version v4.2.1.
Keep monotonicity in case of small clock drift.