|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.net.ntp.NtpClient
public final class NtpClient
NtpClient - an NTP client for Java. This program connects to an NTP server
Constructor Summary | |
---|---|
NtpClient(String serverName)
default constructor of the class |
Method Summary | |
---|---|
long |
currentTimeMillis()
returns the current time from ntp server in ms from 1970 |
long |
getOffset()
returns the offest from the ntp server to local system |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NtpClient(String serverName)
serverName
- Method Detail |
---|
public long getOffset() throws IOException
IOException
public long currentTimeMillis() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |