tweaks, add MsToTime and TimeToMs