change time unit to milliseconds