Calculating Network Latency

Post Reply
mjacobson
Posts: 204
Joined: Fri Feb 08, 2002 3:35 pm

Calculating Network Latency

Post by mjacobson »

Is there a way with vortex to calculate the network latency while fetching Urls?

I have tried:
<sysinfo proctime><$startTime = $ret>
<fetch $Url>
<sysinfo proctime $startTime><$totalTime = $ret>
<loop SKIP=2 $totalTime><$Latency = $totalTime></loop>
<$Latency=($Latency/2)>

While this seems to work, at times, it gives me really high values, "15.003459" for $Latency.
mjacobson
Posts: 204
Joined: Fri Feb 08, 2002 3:35 pm

Calculating Network Latency

Post by mjacobson »

Thanks. I don't know how I missed reading about these urlinfo flags. Transfertime seems to be what I need.

I do have another question concerning redirects and <urlinfo header "Date">. When I fetch a page that is on one server (www.somesite.com) and get redirected to a different server (www.newserver.com), which header am I getting the Date value from?

Also, is there a way with vortex to get just the server's header without making a http request with fetch for a document on that server? I need to write a script that retrives the servers date so we can see if it is in sync with a time server. I want to keep bandwidth and network load down as much as possible.
Post Reply