mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 22:30:07 -05:00
Mac has gettimeofday defined, but cmsys wasn't aware of that, so it was falling back to using time() which only provides second resolution. Fixed to allow usec res.
This commit is contained in:
@@ -287,7 +287,7 @@ extern int putenv (char *__string) __THROW;
|
||||
# define FTIME _ftime
|
||||
# define TIMEB _timeb
|
||||
# endif
|
||||
#elif defined( __CYGWIN__ ) || defined( __linux__ )
|
||||
#elif defined( __CYGWIN__ ) || defined( __linux__ ) || defined(__APPLE__)
|
||||
# include <sys/time.h>
|
||||
# include <time.h>
|
||||
# define HAVE_GETTIMEOFDAY
|
||||
|
||||
Reference in New Issue
Block a user