Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Ajax Uploader
»
Re: Get speed of uploader by javascript
Re: Get speed of uploader by javascript
11-21-2008, 10:36 AM
cutechat
Joined on 07-22-2004
Posts 2,332
Re: Get speed of uploader by javascript
Reply
Quote
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