netcdf-c/libnczarr
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
..
awsincludes.h This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
CMakeLists.txt Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
Makefile.am Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
SimpleBinStream.h This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
zarr.c Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
zarr.h Fix a number of CMake problems 2020-11-19 22:24:13 -07:00
zattr.c Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
zcache.c Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
zcache.h Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
zchunking.c This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
zchunking.h Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
zclose.c Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
zcreate.c This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
zcvt.c Modify isnan() operation 2020-08-29 18:42:20 -06:00
zdebug.c Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
zdebug.h Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
zdim.c Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
zdispatch.c Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
zdispatch.h Mostly revert the filter code to reduce its complexity of use. 2020-09-27 12:43:46 -06:00
zfile.c This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
zfilter.c Fix missing casts of var->filters 2020-10-09 21:26:29 -06:00
zgrp.c Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
zincludes.h Mostly revert the filter code to reduce its complexity of use. 2020-09-27 12:43:46 -06:00
zinternal.c Mostly revert the filter code to reduce its complexity of use. 2020-09-27 12:43:46 -06:00
zinternal.h Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
zjson.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
zjson.h 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
zmap_nz4.c Prepare for the path management code 2020-10-13 19:12:15 -06:00
zmap_nzf.c Make use of clock_gettime be conditional. 2020-12-06 18:19:53 -07:00
zmap_s3sdk.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
zmap.c Prepare for the path management code 2020-10-13 19:12:15 -06:00
zmap.h 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
zodom.c Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
zodom.h Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
zopen.c This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
zprov.c Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
zprovenance.h This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
zs3sdk.cpp Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
zs3sdk.h This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
zsync.c Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
ztype.c This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
zutil.c This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
zvar.c Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00
zwalk.c Fix a number of CMake problems 2020-11-19 22:24:13 -07:00
zxcache.c Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00