public static enum TimeSample.Precision extends Enum<TimeSample.Precision>
This describes the reading itself, not the wire format: an NTP query or the local clock can be MILLIS (or better), while a remote NetPhantom client that only reported whole seconds is SECONDS. The aggregator uses this to avoid treating a coarse reading as if it were exact.
| Enum Constant and Description |
|---|
MILLISMillisecond resolution (typical for NTP and a local wall clock). |
NANONanosecond resolution (rarely available from a network source). |
SECONDSWhole-second resolution (typical for a coarse remote client reading). |
| Modifier and Type | Method and Description |
|---|---|
static TimeSample.Precision | valueOf(String name)Returns the enum constant of this type with the specified name. |
static TimeSample.Precision[] | values()Returns an array containing the constants of this enum type, in the order they are declared. |
public static final TimeSample.Precision NANO
public static final TimeSample.Precision MILLIS
public static final TimeSample.Precision SECONDS
public static TimeSample.Precision[] values()
for (TimeSample.Precision c : TimeSample.Precision.values()) System.out.println(c);
public static TimeSample.Precision valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullPhantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.