fixed time unit from s to ms