# uS Timer

**URL:** <https://forum.makecode.com/t/us-timer/4448>\
**Category:** micro:bit extensions\
**Created:** [November 16, 2020, 3:25pm UTC](https://forum.makecode.com/t/us-timer/4448 "2020-11-16T15:25:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)\
**Post date:** [November 16, 2020, 3:25pm UTC](https://forum.makecode.com/t/us-timer/4448/1 "2020-11-16T15:25:31Z")

</div>

Hi,

My extension ([https://github.com/bsiever/microbit-pxt-timeanddate](https://github.com/bsiever/microbit-pxt-timeanddate)) 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)  
Bill

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` — 👍 )

---

<div class="post-metadata">

**Author:** ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)\
**Post date:** [November 16, 2020, 6:15pm UTC](https://forum.makecode.com/t/us-timer/4448/2 "2020-11-16T18:15:54Z")

</div>

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