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

Method now

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

Source from the content-addressed store, hash-verified

41public:
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

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36