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:
parent
1d6e7ed71f
commit
254d267e36
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user