On Tue, 17 Nov 2026 15:24:17 GMT, Daniel Fuchs <[email protected]> wrote:

>> Volkan Yazici has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   Switch from `scheduleAtFixedRate()` to `scheduleWithFixedDelay()`
>
> src/jdk.httpserver/share/classes/sun/net/httpserver/ServerImpl.java line 1253:
> 
>> 1251:     }
>> 1252: 
>> 1253: }
> 
> Suggestion:
> 
>     final static long startNanos = System.nanoTime();
>     /**
>      * A monotonic clock substitute of {@link System#currentTimeMillis()}, 
> which
>      * uses wall clock, and hence, is unsuitable for elapsed time 
> measurements.
>      */
>     private static long monotonicInstantMillis() {
>         return TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNanos);
>     }
> 
> }

Applied in aff69c11265.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/33890#discussion_r4601726976

Reply via email to