var bandwidth_kbps = 0;

timer1 = new Date();
startSec = timer1.getTime()/1000;

$.ajaxSetup({async: false, cache: false});
$.get("/include/5Kb.html");

timer2 = new Date();
endSec = timer2.getTime()/1000;

elapSec = ( endSec - startSec );

// prevent divide by zero
if( elapSec == 0 ) { elapSec = 0.001; }

kbits = ( 8 * 5140 ) / 1000;
bandwidth_kbps = Math.round(kbits/elapSec);
// alert( bandwidth_kbps );
$.ajaxSetup({async: true, cache: true});

