diff options
author | tradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d> | 2001-08-31 11:02:54 +0000 |
---|---|---|
committer | tradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d> | 2001-08-31 11:02:54 +0000 |
commit | b97752cd2851b7664f65be236ada264472399764 (patch) | |
tree | 2d317e7dbbe6d8edfec5cb709f75fbed65703aec /src/Startup.c | |
parent | b969b37c1ee43584c7d860979507769012e36c45 (diff) |
Replaced anonymous timers by named timers.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5/trunk@73 4825ed28-b72c-4eae-9704-e50c059e567d
Diffstat (limited to 'src/Startup.c')
-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 c175f97..da5703a 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -74,7 +74,7 @@ void IOHDF5_Startup (void) CCTK_RegisterIOMethodOutputVarAs CCTK_RegisterIOMethodTimeToOutput CCTK_RegisterIOMethodTriggerOutput - CCTK_TimerCreateI + CCTK_TimerCreate CCTK_TimerDestroyI CCTK_TimerResetI IOUtil_CreateDirectory @@ -109,6 +109,10 @@ static void *IOHDF5_SetupGH (tFleshConfig *config, int numvars; ioGH *ioUtilGH; ioHDF5GH *myGH; + const char *timer_names[4] = {"IOHDF5 time to dump parameters", + "IOHDF5 time to dump variables", + "IOHDF5 total time to checkpoint", + "IOHDF5 time to recover"}; /* suppress compiler warnings about unused variables */ @@ -176,7 +180,7 @@ static void *IOHDF5_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; } |