We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e58848a commit 0feb4f5Copy full SHA for 0feb4f5
ports/alif/mphalport.c
@@ -167,7 +167,9 @@ void mp_hal_delay_ms(mp_uint_t ms) {
167
}
168
169
uint64_t mp_hal_time_ns(void) {
170
- return 0;
+ uint32_t microseconds;
171
+ uint32_t s = mp_hal_time_get(µseconds);
172
+ return (uint64_t)s * 1000000000ULL + (uint64_t)microseconds * 1000ULL;
173
174
175
void mp_hal_pin_config(const machine_pin_obj_t *pin, uint32_t mode,
0 commit comments