Skip a floating point addition operation when integral part of time difference is zero. This avoids potential floating point addition rounding problems while preserving decimal part value.
…only when function clock_gettime() is available and the monotonic timer is also available. Otherwise, in some cases, librt or libposix4 could be used for linking even when finally not using the clock_gettime() function due to lack of the monotonic clock.
This also implies the removal of the winmm.lib dependency for WIN32.
…up (eleminate gcc warning).
sent by Dmitry Mityugov.
windows.h winsock.h winsock2.h ws2tcpip.h is done in setup.h
re-use these sources and functions for subsecond resolution timing
way for emacs, and vim users should provide a similar non-polluting style
the multiply to not wrap-around