Parses a duration of the configuration reference into milliseconds.
A number with one of the units ms, s, m or h, for example "500ms".
ms
s
m
h
"500ms"
The duration in milliseconds.
RangeError when the text is not such a duration.
RangeError
parseDuration("2m"); // 120000 Copy
parseDuration("2m"); // 120000
Parses a duration of the configuration reference into milliseconds.