How to set TTL in millisecond

TTLs have a maximum precision of a second. There is a prior feature request for millisecond precision here: Millisecond precision on ttl.