`System.currentTimeMillis()` should never be used ...
# groovy
v
System.currentTimeMillis()
should never be used to measure a duration within one JVM though, as it depends on wall-clock, so is affected by time-synchronization, summer-time-change and so on. Always use
System.nanotime()
to measure durations within the same JVM.
👍 5