SystemClock
in hadoop-common-project and will be removed in future version.
Please use SystemClock
instead.@Deprecated @InterfaceAudience.Public @InterfaceStability.Stable public final class SystemClock extends Object implements Clock
Clock
that gives the current time from the system
clock in milliseconds.
NOTE: Do not use this to calculate a duration of expire or interval to sleep,
because it will be broken by settimeofday. Please use MonotonicClock
instead.Constructor and Description |
---|
SystemClock()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static SystemClock |
getInstance()
Deprecated.
|
long |
getTime()
Deprecated.
|
@Deprecated public SystemClock()
public static SystemClock getInstance()
Copyright © 2025 Apache Software Foundation. All rights reserved.