mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
90fd1406bc
Re: GH Issue https://github.com/Unidata/netcdf-c/issues/1900 Apparently the clock_gettime() function is not always available. It is used in unit_test/tst_exhash.c and unit_test/tst_xcache.c. To solve this, a number of things were changed: * Move the timing code to a new file unit_tests/timer_utils.[ch] * Modify the timing code to choose one of several timing methods depending on availability. The prioritized order is as follows: 1. If Windows, use the QueryPerformanceCounter mechanism else 2. Use clock_gettime if available else 3. Use gettimeofday if available else 4. Use getrusage if available Note that the resolution of 3 and 4 is less than 1 or 2. Misc. Other Changes: * Move the test in CMakeLists.txt that disables unit tests for WIN32 to unit_test/CMakeLists.txt since some unit tests actually work under Visual Studio. * Fix some of the unit tests to work under visual studio * Fix problem with using remove() in zmap_nzf.c * Remove some warning about use of EXTERNL |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
datt.c | ||
dattget.c | ||
dattinq.c | ||
dattput.c | ||
dauth.c | ||
daux.c | ||
dcompound.c | ||
dcopy.c | ||
dcrc32.c | ||
dcrc32.h | ||
dcrc64.c | ||
ddim.c | ||
ddispatch.c | ||
defcheck.c | ||
denum.c | ||
derror.c | ||
dfile.c | ||
dfilter.c | ||
dfilterx.c | ||
dgroup.c | ||
dhttp.c | ||
dinfermodel.c | ||
dinternal.c | ||
dnotnc3.c | ||
dnotnc4.c | ||
doffsets.c | ||
dopaque.c | ||
dparallel.c | ||
dpathmgr.c | ||
drc.c | ||
dreadonly.c | ||
dstring.c | ||
dtype.c | ||
durlmodel.c | ||
dutf8.c | ||
dutil.c | ||
dv2i.c | ||
dvar.c | ||
dvarget.c | ||
dvarinq.c | ||
dvarput.c | ||
dvlen.c | ||
json.c | ||
Makefile.am | ||
nc.c | ||
ncbytes.c | ||
ncexhash.c | ||
nchashmap.c | ||
nclist.c | ||
nclistmgr.c | ||
nclog.c | ||
ncsettings.hdr | ||
nctime.c | ||
ncuri.c | ||
ncxcache.c | ||
netcdf.m4 | ||
stubdef.c | ||
u8.c | ||
u8.h | ||
utf8proc_data.c | ||
utf8proc.c | ||
utf8proc.h |