libusb/Xcode
Chris Dickens 068b594306 core: Remove use of gettimeofday()
Prior to this commit, gettimeofday() was being used for timestamps
in debug messages. This function has been marked as deprecated in
the latest POSIX specification and furthermore is not supported on
Windows, thus requiring our own implementation as usbi_gettimeofday().

This commit changes the logging code to obtain timestamps using the
clock_gettime() function provided by the backend. The implementation of
usbi_gettimeofday() for Windows was actually equivalent to that of the
USBI_CLOCK_REALTIME implementation for clock_gettime(), so this
eliminates code duplication. In addition, the USBI_CLOCK_REALTIME
implementation has been updated for Windows to leverage the
timespec_get() function available in VS 2015 and later.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
2017-01-12 15:03:16 -08:00
..
libusb.xcodeproj darwin: build hotplugtest sample in Xcode 2016-03-06 13:37:14 +01:00
common.xcconfig Enabled additional warnings in Xcode project 2014-03-21 21:43:12 -06:00
config.h core: Remove use of gettimeofday() 2017-01-12 15:03:16 -08:00
debug.xcconfig Misc: Revert all references to libusb/libusb.info 2014-01-08 23:51:01 +00:00
libusb.xcconfig Use @rpath in Xcode project 2014-05-06 01:28:08 -06:00
libusb_debug.xcconfig Misc: Revert all references to libusb/libusb.info 2014-01-08 23:51:01 +00:00
libusb_release.xcconfig Misc: Revert all references to libusb/libusb.info 2014-01-08 23:51:01 +00:00
release.xcconfig Enabled LTO optimization in release in Xcode project 2014-03-21 21:43:40 -06:00