Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
NANOSECONDS_PER_MILLISECOND constant can be moved to class level instead of creating it in each method call.
org.apache.hadoop.util.Time.java public static long monotonicNow() { final long NANOSECONDS_PER_MILLISECOND = 1000000; return System.nanoTime() / NANOSECONDS_PER_MILLISECOND; }