<blockquote>
<p>Another solution I imagine, would be to save the previous last time that was read and adjust the time returned by <code>xtimer_now</code> and <code>xtimer_now64</code> to be sure it is not in the past. It should be updated once per period at least by the xtimer interrupt so would be detectable.</p>
</blockquote>
<p>Hmm, would not work as we are tickless. I was thinking it would be read sometime anyway, but you could spend the whole cycle and have masked interrupt just at the time of the overflow. So forcing an interrupt in the middle would be the similar to ticking twice per cycle.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/issues/5338?email_source=notifications&email_token=ABE7WYGWHPMO3QXGR3B5MDDP3ENYRA5CNFSM4CBIRZUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX7NWGY#issuecomment-503241499">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYE7QLYQUMNDAQBYBG3P3ENYRANCNFSM4CBIRZUA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYFIIDRQPMJIAQEFQGTP3ENYRA5CNFSM4CBIRZUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX7NWGY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/issues/5338?email_source=notifications\u0026email_token=ABE7WYGWHPMO3QXGR3B5MDDP3ENYRA5CNFSM4CBIRZUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX7NWGY#issuecomment-503241499",
"url": "https://github.com/RIOT-OS/RIOT/issues/5338?email_source=notifications\u0026email_token=ABE7WYGWHPMO3QXGR3B5MDDP3ENYRA5CNFSM4CBIRZUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX7NWGY#issuecomment-503241499",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>