MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / set

Method set

libraries/timing/timing.h:44–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 seconds() { set(0); }
43 uint32_t now() { return millis() / 1000UL - _offset; }
44 void set(uint32_t value = 0UL) { _offset = millis() / 1000UL - value; }
45 uint32_t getOffset() { return _offset; };
46
47private:

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36