Package PamUtils.clock
Class OSClock
java.lang.Object
PamUtils.clock.OSClock
- Direct Known Subclasses:
LinuxClock,WindowsClock
Functions to set the OS clock for a particular operating system.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleansetSystemTime(long timeMilliseconds) Set the system clock to the given time in milliseconds.
-
Constructor Details
-
OSClock
-
-
Method Details
-
setSystemTime
public abstract boolean setSystemTime(long timeMilliseconds) Set the system clock to the given time in milliseconds.- Parameters:
timeMilliseconds- time in millis, UTC, probably from GPS, but might be from internet time.- Returns:
- true if sucessful.
-