MCPcopy Create free account
hub / github.com/attermann/microReticulum / ltime

Function ltime

test/test_general/test_general.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29uint64_t timeOffset = 0;
30
31uint64_t ltime() {
32 // handle roll-over of 32-bit millis (approx. 49 days)
33 static uint32_t low32, high32;
34 uint32_t new_low32 = test_millis();
35 if (new_low32 < low32) high32++;
36 low32 = new_low32;
37 return ((uint64_t)high32 << 32 | low32) + timeOffset;
38}
39
40void testTime() {
41 //uint64_t start = RNS::Utilities::OS::ltime();

Callers 9

testTimeFunction · 0.85
testSerializeTimeOffsetFunction · 0.85
testTimeFunction · 0.85
getTimeStringMethod · 0.85
writeTimeOffsetMethod · 0.85
timeMethod · 0.85

Calls 1

test_millisFunction · 0.85

Tested by

no test coverage detected