uS Timer


My extension ( uses the underlying Mbed us_ticker_read() to track elapsed time. Is system_timer_current_time_us() the equivalent in CODAL? Is that sufficient for both V1 and V2 micro:bits?

Any suggestions would be greatly appreciated! (I’m a little short on time to really dig-in and a pointer could help me fix my extension before December)

P.S. There were ugly non-atomic access/race condition issues with the Mbed timer that required a messy workaround…I’d be pretty happy to move to a non-buggy ticker. (And using a uint64_t:+1: )


Follow-up question: Does the timer continue to run on V2 when it’s in sleep mode?