7 ms·
It is easy. You just have to forbid access to timers and loops. Where "timers" include anything that can count and store the count in shared memory. Alternativ
by sfink 5y ago
It is easy. You just have to forbid access to timers and loops. Where "timers" include anything that can count and store the count in shared memory.
Alternatively, you could forbid branches (and therefore loops, implicitly).
- lisper 5y agoI presume that was meant to be facetious? But a clock is not the thing you would prevent access to. The thing you would prevent access to is whatever it is you want to try to time using that clock.
- leni536 5y agoIf you can use a loop for timing then you can use an unrolled loop for timing too.
- GekkePrutser 5y agoBut if you forbid those things, what's left? Loops and branches are what code is made of.