Merge pull request #14678 from tedsteiner:qnx

Fix build issue on QNX platform (#14678)

* QNX compatibility

* core: unify gettimeofday() usage
This commit is contained in:
Ted Steiner 2019-06-04 12:45:21 -04:00 committed by Alexander Alekhin
parent d5a0d6783a
commit f1fb002682

View File

@ -758,8 +758,7 @@ int64 getTickCount(void)
return (int64)mach_absolute_time();
#else
struct timeval tv;
struct timezone tz;
gettimeofday( &tv, &tz );
gettimeofday(&tv, NULL);
return (int64)tv.tv_sec*1000000 + tv.tv_usec;
#endif
}