我正在尝试调试一些网络问题,我想跟踪不同事件的响应时间。例如,连接到服务器所需的时间与服务器呈现页面所需的时间(因此time wget ...不起作用)
我一直在使用 wget
$ wget --spider www.google.com
Spider mode enabled. Check if remote file exists.
--2013-11-22 13:56:10-- http://www.google.com/
Resolving www.google.com... 74.125.224.52, 74.125.224.49, 74.125.224.48, ...
Connecting to www.google.com|74.125.224.52|:80... connected. <-- Time here
HTTP request sent, awaiting response... 200 OK <-- Time here
Length: unspecified [text/html]
Remote file exists and could contain further links,
but recursion is disabled -- not retrieving.
Run Code Online (Sandbox Code Playgroud)
有没有办法为各种请求添加时间戳?
wget ×1