Is there any http-client library for scala that can tell how long time a request took?
Asked
Active
Viewed 44 times
1 Answers
1
Maybe you can use the time library in Java.
var start = System.currentTimeMillis();
// send request
var end = System.currentTimeMillis();
println("Round trip response time = " + (end-start) + " millis";
It seems that there is no need to have a http-client library to tell you about it.

gaocegege
- 38
- 5