public static Timing createTiming(Query query, Result result) {
        long summaryStartTime = result.getElapsedTime().firstFill();
        long queryStartTime = result.getElapsedTime().first();
        return new Timing(summaryStartTime,
                          0,
                          queryStartTime == Long.MAX_VALUE ? 0 : queryStartTime,
                          query.getTimeout());
    }
Some leftover static methods.

@author Steinar Knutsen
container-search/src/main/java/com/yahoo/search/handler/SearchResponse.java