Our Products:
CompleteFTP
edtFTPnet/Free
edtFTPnet/PRO
edtFTPj/Free
edtFTPj/PRO
Login
Remember
Google Login
Register
All Activity
Questions
Hot!
Unanswered
Tags
Categories
Ask a Question
Ask a Question
Time taken for file upload/download
0
votes
5.1k
views
asked
Mar 24, 2009
in
Java FTP
by
brijesh
(
160
points)
Hi,
I am uploading/downloading a file and i want total time taken for uploading/downloading a file. How can i get it?
Thanks & Regards,
Brijesh
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
4
Answers
0
votes
answered
Mar 24, 2009
by
support2
(
162k
points)
The simplest way is System.currentTimeMillis() before and after the transfer.
Please
log in
or
register
to add a comment.
0
votes
answered
Mar 25, 2009
by
brijesh
(
160
points)
But what if i have used uploadFileAsync() method for uploading? In that case time taken is 0.
Please
log in
or
register
to add a comment.
0
votes
answered
Mar 25, 2009
by
anonymous
By the way,if an
error
occurs while downloading,when
resuming
transfer, the way invoking System.currentTimeMillis() before and after the transfer will not work.
Please
log in
or
register
to add a comment.
0
votes
answered
Mar 25, 2009
by
support2
(
162k
points)
Take a look at the events - Downloading and Downloaded, similar for uploading. You can set up the events to record the time taken.
Please
log in
or
register
to add a comment.
Categories
All categories
Products
(2.8k)
CompleteFTP
(418)
Java FTP
(1k)
.NET FTP
(1.4k)
FAQ
(120)
General
(178)
Feature Requests
(21)
...