public static Double seconds(String timeout) {
        Matcher matcher = timeoutPattern.matcher(timeout);
        if (!matcher.matches()) {
            throw new RuntimeException("Timeout pattern not in sync with schema");
        }

        double value = Double.parseDouble(matcher.group(1));
        if (matcher.group(3) != null) {
            value /= milliSecondsPerSecond;
        }
        return value;
    }
Utility class for parsing timeout fields.

@author Tony Vaagenes
@author Steinar Knutsen
config-model/src/main/java/com/yahoo/vespa/model/builder/xml/dom/chains/search/TimeParser.java