How can I convert microseconds to milliseconds and make it possible to compare timestamps by substraction? Example:
int t1 = (int)timeGetTime();
int t2 = (int)timeGetTime()+40;
// now t1 - t2 < 0 which means that t1 < t2.
This logic won't work if you divide time values by 1000, to convert microseconds to milliseconds.