HADOOP-13080. Refresh time in SysInfoWindows is in nanoseconds. Contributed by Inigo Goiri
(cherry picked from commit c1cc6ac667
)
This commit is contained in:
parent
ceb9a49d03
commit
a50dc05a60
|
@ -59,7 +59,7 @@ public class SysInfoWindows extends SysInfo {
|
||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
long now() {
|
long now() {
|
||||||
return System.nanoTime();
|
return Time.monotonicNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
void reset() {
|
void reset() {
|
||||||
|
|
Loading…
Reference in New Issue