diff options
author | kmu <kmu@hdfgroup.org> | 2020-01-21 02:47:48 (GMT) |
---|---|---|
committer | kmu <kmu@hdfgroup.org> | 2020-01-21 02:47:48 (GMT) |
commit | a95b5b1e056e171702ad41b69cb796da0cbb91eb (patch) | |
tree | efeac251757e78e1fcef89356e7c56f240279d45 /tools/lib/io_timer.h | |
parent | 7e93acd94f20c73d27bb2eb4f7b4389d88cfb299 (diff) | |
parent | a63f22e27cad74c9bb98ca2b4d2a5fd118ef3571 (diff) | |
download | hdf5-a95b5b1e056e171702ad41b69cb796da0cbb91eb.zip hdf5-a95b5b1e056e171702ad41b69cb796da0cbb91eb.tar.gz hdf5-a95b5b1e056e171702ad41b69cb796da0cbb91eb.tar.bz2 |
Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/hdffv/hdf5 into develop
Diffstat (limited to 'tools/lib/io_timer.h')
-rw-r--r-- | tools/lib/io_timer.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/lib/io_timer.h b/tools/lib/io_timer.h index 78bf676..c1fa58e 100644 --- a/tools/lib/io_timer.h +++ b/tools/lib/io_timer.h @@ -28,6 +28,7 @@ #ifdef H5_HAVE_WINSOCK2_H # include <winsock2.h> #endif /* H5_HAVE_WINSOCK2_H */ + /* The different types of timers we can have */ typedef enum timer_type_ { HDF5_FILE_OPENCLOSE, @@ -70,10 +71,19 @@ typedef struct io_time_t { #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ + +#ifdef STANDALONE +io_time_t *io_time_new(clock_type t); +void io_time_destroy(io_time_t *pt); +io_time_t *io_time_set(io_time_t *pt, timer_type t, int start_stop); +double io_time_get(io_time_t *pt, timer_type t); +#else H5TOOLS_DLL io_time_t *io_time_new(clock_type t); H5TOOLS_DLL void io_time_destroy(io_time_t *pt); H5TOOLS_DLL io_time_t *io_time_set(io_time_t *pt, timer_type t, int start_stop); H5TOOLS_DLL double io_time_get(io_time_t *pt, timer_type t); +#endif + #ifdef __cplusplus } #endif /* __cplusplus */ |