Merge pull request #14678 from tedsteiner:qnx

Fix build issue on QNX platform (#14678)

* QNX compatibility

* core: unify gettimeofday() usage
pull/14724/head
Ted Steiner 6 years ago committed by Alexander Alekhin
parent d5a0d6783a
commit f1fb002682
  1. 3
      modules/core/src/system.cpp

@ -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
}

Loading…
Cancel
Save