APISonar


io.restassured.response.Response.time

> io > restassured > response > Response > time
io APIs restassured APIs response APIs Response APIs time APIs

Example 1
public void whenMeasureResponseTime_thenOK(){
        Response response = RestAssured.get("/users/eugenp");
        long timeInMS = response.time();
        long timeInS = response.timeIn(TimeUnit.SECONDS);
        
        assertEquals(timeInS, timeInMS/1000);
    }