MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / getTime

Method getTime

examples/io/udp/ntp/ntp.js:58–68  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

56 this.#timer = undefined;
57 }
58 getTime(callback) {
59 if (undefined !== this.#callback)
60 throw new Error("in use");
61
62 this.#callback = callback;
63 this.#index = 0;
64 this.#retry = 0;
65 this.#address = undefined;
66
67 this.#next();
68 }
69 #next() {
70 if (this.#address) {
71 if (this.#retry++ < 5) {

Callers 9

secondsMethod · 0.80
configurationMethod · 0.80
configurationMethod · 0.80
serializeFunction · 0.80
UUIDFunction · 0.80
setRTCTimeLocalFunction · 0.80
main.jsFile · 0.80
main.jsFile · 0.80
setTimeFromTextMethod · 0.80

Calls 1

#nextMethod · 0.95

Tested by

no test coverage detected