You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2018/02/08 14:32:00 UTC

[jira] [Resolved] (NET-645) Use System.nanoTime() to measure time intervals

     [ https://issues.apache.org/jira/browse/NET-645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb resolved NET-645.
----------------------
    Resolution: Won't Fix

If the system date is being reset, this can cause all sorts of problems.

Note also that setting the keepAlive to a large value is likely to be counter-productive.

> Use System.nanoTime() to measure time intervals
> -----------------------------------------------
>
>                 Key: NET-645
>                 URL: https://issues.apache.org/jira/browse/NET-645
>             Project: Commons Net
>          Issue Type: Wish
>          Components: FTP
>    Affects Versions: 3.6
>            Reporter: Ilya Basin
>            Priority: Major
>
> At least in org.apache.commons.net.ftp.FtpClient
> System.nanoTime()
> should be used instead of
> System.currentTimeMillis()
> I see that commons-net-3.6.jar is targeted for java 6. So nanoTime() is available.
> {code}
> $ javap -v -classpath commons-net-3.6 org.apache.commons.net.ftp.FtpClient | grep "major version"
> Warning: Binary file org.apache.commons.net.ftp.FtpClient contains org.apache.commons.net.ftp.FTPClient
>   major version: 50
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)