···5353}
54545555// Constructs a new TID from a UNIX timestamp (in milliseconds) and clock ID value.
5656-func NewTID(unixMilis int64, clockId uint) TID {
5757- var v uint64 = (uint64(unixMilis&0x1F_FFFF_FFFF_FFFF) << 10) | uint64(clockId&0x3FF)
5656+func NewTID(unixMicros int64, clockId uint) TID {
5757+ var v uint64 = (uint64(unixMicros&0x1F_FFFF_FFFF_FFFF) << 10) | uint64(clockId&0x3FF)
5858 return NewTIDFromInteger(v)
5959+}
6060+6161+// Constructs a new TID from a [time.Time] and clock ID value
6262+func NewTIDFromTime(ts time.Time, clockId uint) TID {
6363+ return NewTID(ts.UTC().UnixMicro(), clockId)
5964}
60656166// Returns full integer representation of this TID (not used often)