u32 getDeltaMs(u32 old_time_ms,u32 new_time_ms) { | |
if (new_time_ms > old_time_ms) { | |
return (new_time_ms - old_time_ms); | |
} | |
else { | |
return ((0xFFFFFFFF - old_time_ms) + new_time_ms); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment