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

Robert Muir commented on LUCENE-10423:
--------------------------------------

Certainly not. No reason to drag any third party library into this.

https://docs.oracle.com/javase/7/docs/api/java/lang/System.html#nanoTime()

> Remove uses of wall-clock time in codebase
> ------------------------------------------
>
>                 Key: LUCENE-10423
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10423
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>            Priority: Major
>
> Followup to LUCENE-10421
> Code in the library shouldn't rely on wall-clock time. If you look at all the 
> places doing this, they are basically all bad news.
> Most tests doing this are "iterating for some amount of wall-clock time" 
> which causes them to instead just be non-reproducible. These should be 
> changed to use a fixed number of loop iterations instead.
> It would really be great to ban this stuff in forbidden apis. It is even in 
> the configuration file, just currently commented out.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to