You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Andrzej Bialecki (JIRA)" <ji...@apache.org> on 2018/03/14 11:41:00 UTC

[jira] [Commented] (SOLR-12091) Rename TimeSource.getTime to getTimeNs

    [ https://issues.apache.org/jira/browse/SOLR-12091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16398424#comment-16398424 ] 

Andrzej Bialecki  commented on SOLR-12091:
------------------------------------------

Patch with the changes. If there are no objections I'll commit this shortly.

> Rename TimeSource.getTime to getTimeNs
> --------------------------------------
>
>                 Key: SOLR-12091
>                 URL: https://issues.apache.org/jira/browse/SOLR-12091
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Andrzej Bialecki 
>            Assignee: Andrzej Bialecki 
>            Priority: Minor
>             Fix For: 7.4, master (8.0)
>
>         Attachments: SOLR-12091.patch
>
>
> Spinoff from SOLR-11670. {{TimeSource.getTime()}} and {{getEpochTime}} return values in nanoseconds, which may be confusing. As suggested by [~dsmiley] renaming them to {{getTimeNs}} and {{getEpochTimeNs}} would reduce the likelihood of using their values in situations where milliseconds are expected.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org