diff options
author | tradke <tradke@0888f3d4-9f52-45d2-93bc-d00801ff5e46> | 2001-08-31 11:02:35 +0000 |
---|---|---|
committer | tradke <tradke@0888f3d4-9f52-45d2-93bc-d00801ff5e46> | 2001-08-31 11:02:35 +0000 |
commit | 3075b57c3ee364e456ad950b66d05f893fd78547 (patch) | |
tree | 3b9707237a558ab3f661272ce776905c61f1f5aa | |
parent | d2f7ae5b466456824fd28b1c907c45b88e1505a7 (diff) |
Replaced anonymous timers by named timers.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOStreamedHDF5/trunk@74 0888f3d4-9f52-45d2-93bc-d00801ff5e46
-rw-r--r-- | src/Startup.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Startup.c b/src/Startup.c index 29d2d92..8e9ea7a 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -145,7 +145,7 @@ void IOStreamedHDF5_Terminate (cGH *GH) Socket_SetNonBlocking IOUtil_AdvertiseFile Util_GetHostName - CCTK_TimerCreateI + CCTK_TimerCreate CCTK_TimerDestroyI CCTK_TimerResetI @@ -182,6 +182,10 @@ static void *IOStreamedHDF5_SetupGH (tFleshConfig *config, ioStreamedHDF5GH *myGH; FILE *advertised_file_fd; ioAdvertisedFileDesc advertised_file; + const char *timer_names[4] = {"IOStreamedHDF5 time to dump parameters", + "IOStreamedHDF5 time to dump variables", + "IOStreamedHDF5 total time to checkpoint", + "IOStreamedHDF5 time to recover"}; /* suppress compiler warnings about unused variables */ @@ -284,7 +288,7 @@ static void *IOStreamedHDF5_SetupGH (tFleshConfig *config, { for (i = 0; i < IOHDF5_NUM_TIMERS; i++) { - if ((myGH->timers[i] = CCTK_TimerCreateI ()) < 0) + if ((myGH->timers[i] = CCTK_TimerCreate (timer_names[i])) < 0) { break; } |