private double getAllocatedCapacity(String id) {
        Double value = allocatedCapacity.get().get(id);
        if (value == null) return 0;
        return value;
    }
For testing - allows injection of a timer to avoid depending on the system clock
container-search/src/main/java/com/yahoo/search/searchers/RateLimitingSearcher.java