| 29 | uint64_t timeOffset = 0; |
| 30 | |
| 31 | uint64_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 | |
| 40 | void testTime() { |
| 41 | //uint64_t start = RNS::Utilities::OS::ltime(); |
no test coverage detected