Re: Get speed of uploader by javascript

  •  11-21-2008, 10:36 AM

    Re: Get speed of uploader by javascript

    Hi,
     
    Yes, you can calculate the speed by this way:
     
     
    if(enable)
    {
        var span=new Date().getTime()-begintime;//ms
        var bytesPerMillisecond=uploadedsize/span;
        var kbPerSeconds=Math.floor(bytesPerMillisecond*1024/1000);
    }
     
    Regards,
    Terry
View Complete Thread