modify time unit to millisec