dromara / forest

A high-level and lightweight declarative HTTP client framework for Java. it makes sending HTTP requests in Java easier.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

onSuccess 中怎么拿到请求耗时?

dute7liang opened this issue · comments

我想打印一下http请求的耗时情况。 目前是在onSuccess里面打印,我想问一下有预留这种http请求耗时的方法么。 如果没有有什么办法可以实现这种? 感谢了

调用 reponse.getTimeAsMillisecond() 方法

试了下,可以,感谢。