Press on the image to return to the main documentation page.
SPSntp
List of types:
SntpTime
SPSntp
SntpTime
This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Permissions:
android.permission.INTERNET
Events:
None
Members:
getGmtNtpTime
As
Long
NtpServerName
As
String
[write
only]
NtpTimeReference
As
Long
[read
only]
RoundTripTime
As
Long
[read
only]
TimeOut
As
Int
[write
only]
Members description:
getGmtNtpTime
As
Long
Returns the system time computed from NTP server response (in ticks).
If an error occurred during the request, the returned value ist -1.
NtpServerName
As
String
[write
only]
Sets the adress of the NTP server used for the time request.
If not set, the default server "0.us.pool.ntp.org" is used.
NtpTimeReference
As
Long
[read
only]
Returns the reference clock value (value of SystemClock.elapsedRealtime())
corresponding to the NTP time according to the last getGmtNtpTime call (in ticks).
If an error occurred during the last request, the returned value is -1.
RoundTripTime
As
Long
[read
only]
Returns the round trip time of the NTP transaction according to the last
getGmtNtpTime call (in ticks).
If an error occurred during the last request, the returned value is -1.
TimeOut
As
Int
[write
only]
Sets the timeout value for the network time request.
If not set, the default timeout value is 30000 milliseconds (30s).
SPSntp
This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Events:
None
Members:
Members description:
Top