var throughput=0;

function spd_stop() {
	var time=new Date();
	var endTime=time.getTime();
	var DataSize=10240;
	var elapsedTime=Math.round((endTime-startTime)/10)/100;

	var diffTimeMilliseconds = endTime - startTime;
	var diffTimeSeconds = diffTimeMilliseconds/1000;
	var bits = (DataSize*8);   // convert Bytes to bits,
	var kbits = bits/1024;     // convert bits to kbits
	throughput = kbits/(diffTimeSeconds);
	throughput = throughput * .93;  // account for IP packet header overhead - averages about 7%
}
spd_stop();

