user1718019
user1718019

Reputation: 241

wget time measurement

I am using wget for http traffic measurement. Since the network is quick and the http data is small in size, wget cannot measure time and rate of the download session. So how could I measure the time? Maybe someone could help providing a script or another application that is capable of solving this problem.

Thanks in advance!

Upvotes: 24

Views: 36423

Answers (2)

G Mawr
G Mawr

Reputation: 1183

As alluded to by user1718019, curl can do this for you:

curl -so /dev/null -w '%{time_total}\n' http://www.example.com/

This will print on stdout, according to the manual:

The total time, in seconds, that the full operation lasted. The time will be displayed with millisecond resolution.

Upvotes: 41

aztaroth
aztaroth

Reputation: 989

Try something like time wget http://whatever.com.

Upvotes: 28

Related Questions