ConnectionLatency Property

 

Type: Integer

 

Returns the latency in milliseconds of the visitor's connection speed for downloads.

 

Note: To use this property you must set the SpeedCheckType property to indicate you wish to use the Progressive testing method, set the SupportFilesRoot property as required by the Progressive testing method, copy the speed test image files to your server as explained in the Progressive testing section, and call the GetExtPropertiesEx method before checking the value of this property.

 

Tip: See the speed.asp sample for a working example of the connection latency test.

 

Example:

<% set bhObj = Server.CreateObject("cyScape.browserObj")

bhObj.SetExtProperties "ConnectionSpeed, ConnectionLatency"

bhObj.SpeedCheckType = 1  ' turns on the Progressive testing method

bhObj.SupportFilesRoot = "url where you placed speed test image files"

bhObj.GetExtPropertiesEx

%>

<html>

  Your download connection speed in bits per second is: <% = bhObj.ConnectionSpeed %> <br>

  Your download connection latency in milliseconds is: <% = bhObj.ConnectionLatency %> <p>

  Your download connection speed for nicely formatted display purposes is: <% = bhObj.Translate("ConnectionSpeed") %> <p>

</html>

 

Special notes for this property:

 

See Also:

ConnectionSpeed Property

Detecting Connection Speed and Dialup Users

Progressive Versus Original Speed Test

EstDownloadTimeSec Method

EstDownloadTimeDesc Method

Detecting Upload Speeds