onSuccess 中怎么拿到请求耗时?
dute7liang opened this issue · comments
dute7liang commented
我想打印一下http请求的耗时情况。 目前是在onSuccess里面打印,我想问一下有预留这种http请求耗时的方法么。 如果没有有什么办法可以实现这种? 感谢了
公子骏 commented
调用 reponse.getTimeAsMillisecond() 方法
dute7liang commented
试了下,可以,感谢。
A high-level and lightweight declarative HTTP client framework for Java. it makes sending HTTP requests in Java easier.
dute7liang opened this issue · comments
我想打印一下http请求的耗时情况。 目前是在onSuccess里面打印,我想问一下有预留这种http请求耗时的方法么。 如果没有有什么办法可以实现这种? 感谢了
调用 reponse.getTimeAsMillisecond() 方法
试了下,可以,感谢。