我们正在尝试了解api响应所用的总时间。目前,我们正在使用计时器进行计算。我们在http响应对象中找不到任何对此有帮助的头。同时,curl能够提供time_namelookup、time_connect、time_appconnect、time_pretransfer、time_redirect、time_redirect、time_starttransfer和time_total等信息。
有没有办法在javascript/php中理解这些?
发布于 2019-12-13 19:08:03
你能检查一下这个How to measure time taken by a function to execute吗,你可以试着在那个函数中调用你的api?
https://stackoverflow.com/questions/59321005
复制相似问题