You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (JIRA)" <ji...@apache.org> on 2017/07/10 07:35:00 UTC

[jira] [Closed] (FLINK-7139) Refine currentTimeMillis to nanoTime

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

Chesnay Schepler closed FLINK-7139.
-----------------------------------
    Resolution: Duplicate

It's a good idea in general but there's already an issue for this, see FLINK-4422.

> Refine currentTimeMillis to nanoTime
> ------------------------------------
>
>                 Key: FLINK-7139
>                 URL: https://issues.apache.org/jira/browse/FLINK-7139
>             Project: Flink
>          Issue Type: Improvement
>          Components: Local Runtime
>            Reporter: mingleizhang
>            Assignee: mingleizhang
>            Priority: Minor
>
> When measuring intervals of time it's much better & safer to use {{System.nanoTime()}} than {{System.currentTimeMillis()}}. The latter is affected by system clock drift and adjustments (like by system time daemon) and the former is much more precise and stable.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)