Q_UINT32 finalTicks; Q_UINT32 ticks = (((Q_UINT32)ms+16)*3)/50;
UInt32 finalTicks; UInt32 ticks = (((UInt32)ms+16)*3)/50;
int sqliteOsSleep(int ms){#if OS_UNIX#if defined(HAVE_USLEEP) && HAVE_USLEEP  usleep(ms*1000);  return ms;#else  sleep((ms+999)/1000);  return 1000*((ms+999)/1000);#endif#endif#if OS_WIN  Sleep(ms);  return ms;#endif#if OS_MAC  Q_UINT32 finalTicks;  Q_UINT32 ticks = (((Q_UINT32)ms+16)*3)/50;  /* 1/60 sec per tick */  Delay(ticks, &finalTicks);  return (int)((ticks*50)/3);#endif}