任何可以告诉请求花了多长时间的客户端库?
Any client library that can tell how long the request took?
是否有任何 scala 的 http 客户端库可以判断请求花费了多长时间?
也许你可以使用Java中的时间库。
var start = System.currentTimeMillis();
// send request
var end = System.currentTimeMillis();
println("Round trip response time = " + (end-start) + " millis";
好像不用http-client库来告诉大家了
是否有任何 scala 的 http 客户端库可以判断请求花费了多长时间?
也许你可以使用Java中的时间库。
var start = System.currentTimeMillis();
// send request
var end = System.currentTimeMillis();
println("Round trip response time = " + (end-start) + " millis";
好像不用http-client库来告诉大家了