1
0
Fork 0

Consolidate timer_elapsed implementations (#24830)

This commit is contained in:
Joel Challis 2025-01-19 17:07:11 +00:00 committed by GitHub
parent a62f9a2ffd
commit cedd49c59b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 11 additions and 44 deletions

View file

@ -118,11 +118,3 @@ uint32_t timer_read32(void) {
return (uint32_t)TIME_I2MS(ticks) + ms_offset_copy;
}
uint16_t timer_elapsed(uint16_t last) {
return TIMER_DIFF_16(timer_read(), last);
}
uint32_t timer_elapsed32(uint32_t last) {
return TIMER_DIFF_32(timer_read32(), last);
}