mitmproxy,如何获得调用的响应time/duration?

mitmproxy, how to get the response time/duration of a call?

我能够从请求和响应中获取响应代码、正文、url 和查询字符串,但我无法获取调用所用的时间。

我们有

mitm 是否有任何东西可以获取通话的持续时间。

mitmproxy 数据结构记录在 http://docs.mitmproxy.org/en/latest/dev/models.html

例如:

def request(context, flow):
    print(flow.request.timestamp_start)