diff options
author | myang6 <myang6@hdfgroup.org> | 2021-10-15 18:29:19 (GMT) |
---|---|---|
committer | myang6 <myang6@hdfgroup.org> | 2021-10-15 18:29:19 (GMT) |
commit | 89cde3e0009bf2e97319ba3f36c100c97b6208e1 (patch) | |
tree | 8896cfb98ced41d3bfe87a1bf627ccab2a879a5e /src/H5FDvfd_swmr_private.h | |
parent | a45b73e4275b26505d8b659d1d807a654bb60df7 (diff) | |
download | hdf5-89cde3e0009bf2e97319ba3f36c100c97b6208e1.zip hdf5-89cde3e0009bf2e97319ba3f36c100c97b6208e1.tar.gz hdf5-89cde3e0009bf2e97319ba3f36c100c97b6208e1.tar.bz2 |
Test to just write a log file for H5Fopen. Add a testing routine vfd_swmr_log_writer.c.
Diffstat (limited to 'src/H5FDvfd_swmr_private.h')
-rw-r--r-- | src/H5FDvfd_swmr_private.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/H5FDvfd_swmr_private.h b/src/H5FDvfd_swmr_private.h index 12fd2e2..280ea2f 100644 --- a/src/H5FDvfd_swmr_private.h +++ b/src/H5FDvfd_swmr_private.h @@ -57,6 +57,15 @@ typedef struct eot_queue_entry { TAILQ_ENTRY(eot_queue_entry) link; } eot_queue_entry_t; +#define TOTAL_TIME_PASSED(X, Y) \ + ((double)((Y.tv_sec - X.tv_sec) * 1000000000 + (Y.tv_nsec - X.tv_nsec))) / 1000000.0 + +#define TIME_PASSED_MIN(X) (unsigned int)(X/60000) +#define TIME_PASSED_SEC(X,Y) (unsigned int)((X-Y*60000)/1000) +#define TIME_PASSED_MSEC(X,Y,Z) (unsigned int)(X-Y*60000-Z*1000) +//H5_DLLVAR extern hbool_t vfd_swmr_log_on; +//H5_DLLVAR extern FILE *vfd_swmr_log_file_ptr; + H5_DLLVAR unsigned int vfd_swmr_api_entries_g; /* The head of the EOT queue */ |