correct counter delay to milliseconds