Round when truncating to milliseconds.
This is consistent with how the tsms function operates.