summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-01-17 19:56:40 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-01-17 19:56:40 (GMT)
commitc355ed9cf93ea058810ce6e4c54099da44901ba1 (patch)
treea49fee9997b40591e3f257e9e439251cccda8a14 /tools/lib
parent450a862f6ad450dda38cc19a8963df6d4c8e00a6 (diff)
downloadhdf5-c355ed9cf93ea058810ce6e4c54099da44901ba1.zip
hdf5-c355ed9cf93ea058810ce6e4c54099da44901ba1.tar.gz
hdf5-c355ed9cf93ea058810ce6e4c54099da44901ba1.tar.bz2
Merge perform standalone changes from develop
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/io_timer.h10
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 */