Login | |
|
 |
RE: Speed Test - 12/13/2005 6:27:35 AM
|
|
 |
|
| |
kirrilian
Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
|
before download: StartTime = Timer after download: EndTime = Timer output difference: TimeIt = (EndTime - StartTime)/'link speed here wscript.echo TimeIt
_____________________________
Have you searched here ? VBScript Fundamentals My Site
|
|
| |
|
|
|
 |
RE: Speed Test - 12/13/2005 6:54:03 AM
|
|
 |
|
| |
blake.arnold
Posts: 31
Score: 0
Joined: 12/1/2005
Status: offline
|
The link speed will be different on every machine so how do I get around that?
_____________________________
"And what is a weed? A plant whose virtues have not yet been discovered."
|
|
| |
|
|
|
 |
RE: Speed Test - 12/13/2005 6:59:53 AM
|
|
 |
|
| |
Country73
Posts: 732
Score: 10
Joined: 8/25/2004
From: USA
Status: offline
|
Are you wanting to record this information somewhere, or just display it?
|
|
| |
|
|
|
 |
RE: Speed Test - 12/13/2005 8:49:48 AM
|
|
 |
|
| |
TNO
Posts: 1240
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: online
|
There is no way of determining a user's bandwidth unless you calculate how long it takes for them to download a file (i.e. start time and end time)... and that result has to be returned to the server, so it's impossible to do it using a client-side script. And it still won't be accurate due to the number of hops the user has to take to connect with your server, and any latency along the way (not to mention any bandwidth hogging programs the user may have installed). You can only get an average. You might want to check out some sites and see how they do it... however their results are not accurate either since your latency is totally dependent upon the connections from YOUR computer to the REMOTE HOST.
_____________________________
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
| |
|
|
|
|
|