MCPcopy Create free account
hub / github.com/PaulStoffregen/Time / refreshCache

Function refreshCache

Time.cpp:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40static uint32_t syncInterval = 300; // time sync will be attempted after this many seconds
41
42void refreshCache(time_t t) {
43 if (t != cacheTime) {
44 breakTime(t, tm);
45 cacheTime = t;
46 }
47}
48
49int hour() { // the hour now
50 return hour(now());

Callers 8

hourFunction · 0.85
hourFormat12Function · 0.85
minuteFunction · 0.85
secondFunction · 0.85
dayFunction · 0.85
weekdayFunction · 0.85
monthFunction · 0.85
yearFunction · 0.85

Calls 1

breakTimeFunction · 0.85

Tested by

no test coverage detected