summaryrefslogtreecommitdiffstats
path: root/tools/lib/io_timer.h
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-07-20 12:38:07 (GMT)
committerGitHub <noreply@github.com>2022-07-20 12:38:07 (GMT)
commit363e3ecef821b4667592d158c2abc1c4846a966c (patch)
tree7d6b197a2ab23d8ba709341c25562896b44c36e7 /tools/lib/io_timer.h
parent4461678fb5932436a0ce05df4b5a84a10179bb60 (diff)
downloadhdf5-363e3ecef821b4667592d158c2abc1c4846a966c.zip
hdf5-363e3ecef821b4667592d158c2abc1c4846a966c.tar.gz
hdf5-363e3ecef821b4667592d158c2abc1c4846a966c.tar.bz2
Removes the ability to build h5perf and h5perf_serial in standalone mode (#1897)
This feature has been broken for some time and lacks a clear use case.
Diffstat (limited to 'tools/lib/io_timer.h')
-rw-r--r--tools/lib/io_timer.h24
1 files changed, 3 insertions, 21 deletions
diff --git a/tools/lib/io_timer.h b/tools/lib/io_timer.h
index 0b0f0bb..315b30e 100644
--- a/tools/lib/io_timer.h
+++ b/tools/lib/io_timer.h
@@ -14,17 +14,7 @@
#ifndef IO_TIMER
#define IO_TIMER
-#include "hdf5.h"
-
-#include <time.h>
-
-#ifdef H5_HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
-
-#ifdef H5_HAVE_WIN32_API
-#include <winsock2.h>
-#endif
+#include "H5private.h"
/* The different types of timers we can have */
typedef enum timer_type_ {
@@ -64,25 +54,17 @@ typedef struct io_time_t {
struct timeval sys_timer[NUM_TIMERS];
} io_time_t;
-/* External function declarations */
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif
-#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 */
+#endif
#endif /* IO_TIMER */