Change time unit from second to millisecond