no worries Vlad, I’m not expressing a concern over your patch. Just pointing out that it’s not straight forward - as I said in my first sentence. Regarding monotonic clocks - that’s precisely the problem, neither {{ currentTimeMillis }} nor {{ nanoTime }} guarantee that. It doesn’t matter that the OS supports it, the JDK is not exposing the same counter - however what it exactly does depends on the version of the JVM, its vendor, and the OS. I’m aware of NTP issues - it’s probably better to stick with nanoTime for short durations - just worth keeping in mind that even so, it’s not bulletproof. |