You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`unixts`: 36 bit big-endian unsigned Unix Timestamp value
83
-
-`subsec_a`: 12 bits allocated to sub-second precision values
82
+
-`unix_ts_ms`: 48 bit big-endian unsigned number of Unix epoch timestamp with millisecond level of precision
84
83
-`ver`: The 4 bit UUIDv7 version (0111)
85
-
-`subsec_b`: 12 bits allocated to sub-second precision values
84
+
-`subsec_a`: 12 bits allocated to sub-second precision values
86
85
-`var`: 2 bit UUID variant (10)
87
-
-`subsec_c`: 6 bits allocated to sub-second precision values
88
-
-`rand`: The remaining 56 bits are filled with pseudo-random data
89
-
90
-
30 bits dedicated to sub-second precision provide nanosecond resolution. The `unixts` and `subsec` fields guarantee the order of UUIDs generated within the same nanosecond by monotonically incrementing the timer.
86
+
-`subsec_b`: 8 bits allocated to sub-second precision values
87
+
-`rand`: The remaining 54 bits are filled with pseudo-random data
91
88
92
-
This implementation does not include a clock sequence counter as defined in the draft RFC.
89
+
20 extra bits dedicated to sub-second precision provide nanosecond resolution. The `unix_ts` and `subsec` fields guarantee the order of UUIDs generated within the same nanosecond by monotonically incrementing the timer.
93
90
94
91
## Performance
95
92
@@ -126,6 +123,6 @@ Mean +- std dev: 7.51 us +- 1.42 us
0 commit comments