Created
March 2, 2014 15:41
-
-
Save sapier/9308353 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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