import uuid
import struct


def get_ts(uid: uuid.UUID) -> int:
    """Returns the timestamp as the number of 100 microsecond periods since the UNIX epoch"""
    time_part = uid.bytes[0:6]
    ts = struct.unpack('>Q', b'\x00\x00' + time_part)
    return ts[0]