netcdf-c/libdispatch
Dennis Heimbigner 90fd1406bc Make use of clock_gettime be conditional.
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
2020-12-06 18:19:53 -07:00
..
CMakeLists.txt Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
datt.c This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
dattget.c
dattinq.c
dattput.c
dauth.c Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
daux.c Mostly revert the filter code to reduce its complexity of use. 2020-09-27 12:43:46 -06:00
dcompound.c
dcopy.c This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
dcrc32.c Make use of clock_gettime be conditional. 2020-12-06 18:19:53 -07:00
dcrc32.h Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
dcrc64.c Make use of clock_gettime be conditional. 2020-12-06 18:19:53 -07:00
ddim.c
ddispatch.c Revert "Revert "Fix nczarr-experimental: improve build support, disengage hdf5 vs netcdf4 flags, and find AWS libraries"" 2020-08-17 19:15:47 -06:00
defcheck.c
denum.c
derror.c This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
dfile.c Prepare for the path management code 2020-10-13 19:12:15 -06:00
dfilter.c Mostly revert the filter code to reduce its complexity of use. 2020-09-27 12:43:46 -06:00
dfilterx.c This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
dgroup.c
dhttp.c Revert "Revert "Fix nczarr-experimental: improve build support, disengage hdf5 vs netcdf4 flags, and find AWS libraries"" 2020-08-17 19:15:47 -06:00
dinfermodel.c Prepare for the path management code 2020-10-13 19:12:15 -06:00
dinternal.c
dnotnc3.c
dnotnc4.c Mostly revert the filter code to reduce its complexity of use. 2020-09-27 12:43:46 -06:00
doffsets.c
dopaque.c
dparallel.c documentation improvements for nc_var_par_access() 2020-03-02 16:36:56 -07:00
dpathmgr.c Make use of clock_gettime be conditional. 2020-12-06 18:19:53 -07:00
drc.c Prepare for the path management code 2020-10-13 19:12:15 -06:00
dreadonly.c
dstring.c
dtype.c
durlmodel.c Prepare for the path management code 2020-10-13 19:12:15 -06:00
dutf8.c
dutil.c Prepare for the path management code 2020-10-13 19:12:15 -06:00
dv2i.c
dvar.c Mostly revert the filter code to reduce its complexity of use. 2020-09-27 12:43:46 -06:00
dvarget.c
dvarinq.c cleanup 2020-04-15 05:53:59 -06:00
dvarput.c
dvlen.c
json.c
Makefile.am Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
nc.c
ncbytes.c Working on autoconf-based build on OSX 2020-09-15 14:56:12 -06:00
ncexhash.c Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
nchashmap.c Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
nclist.c This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
nclistmgr.c
nclog.c This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
ncsettings.hdr
nctime.c Fix time zone parser bug, github #1417 2020-10-14 15:30:49 -06:00
ncuri.c Yet another fix for DAP2 double URL encoding. 2020-11-05 11:04:56 -07:00
ncxcache.c Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
netcdf.m4
stubdef.c
u8.c
u8.h
utf8proc_data.c
utf8proc.c
utf8proc.h