Open donbourne opened 4 years ago
ChronoUnit (Java 8) should be used insted of TimeUnit (Java 5). We discussed in the past on the mailinglist and settled on the new java.time.ChronoUnit, which was better designed. Here is another nice article about why ChronoUnit is better than TimeUnit. In other specs such as Fault Tolerance, Config briefly, etc, we used ChronoUnit.
calling Timer's
getSnapshot
returns aSnapshot
with lots of values, but it's not obvious from the javadoc which time unit is used for those values.