rest-assured/src/main/java/io/restassured/builder/ResponseSpecBuilder.java
public ResponseSpecBuilder expectResponseTime(Matcher<Long> matcher, TimeUnit timeUnit) {
        spec.time(matcher, timeUnit);
        return this;
    }
public ResponseSpecBuilder expectResponseTime(Matcher<Long> matcher, TimeUnit timeUnit) {
        spec.time(matcher, timeUnit);
        return this;
    }
public ResponseSpecBuilder expectResponseTime ( Matcher < Long > matcher , TimeUnit timeUnit ) { spec . time ( matcher , timeUnit ) ; return this ; }
Validate that the response time matches the supplied <code>matcher</code> and time unit.

@param matcher  The matcher
@param timeUnit The timeout
@return the builder
Validate that the response time matches the supplied <code > matcher< / code > and time unit .