Lines Matching defs:time
30 * Simple SNTP client class for retrieving network time.
34 * if (client.requestTime("time.foo.com")) {
57 // system time computed from NTP server response
63 // round trip time in milliseconds
87 // get current time and write it to the request packet
118 // (response rather than request time)
123 if (false) Log.d(TAG, "request time failed: " + e);
135 * Returns the time computed from the NTP transaction.
137 * @return time value computed from NTP server response.
145 * corresponding to the NTP time.
147 * @return reference clock corresponding to the NTP time.
154 * Returns the round trip time of the NTP transaction
156 * @return round trip time in milliseconds.
181 * Reads the NTP time stamp at the given offset in the buffer and returns
182 * it as a system time (milliseconds since January 1, 1970).
191 * Writes system time (milliseconds since January 1, 1970) as an NTP time stamp
194 private void writeTimeStamp(byte[] buffer, int offset, long time) {
195 long seconds = time / 1000L;
196 long milliseconds = time - seconds * 1000L;