summaryrefslogtreecommitdiff
path: root/src/util/CactusTimers.c
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-08-27 16:46:48 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-08-27 16:46:48 +0000
commit45fc194765402d081a44d1fb4776b3c4aa6fa1d2 (patch)
tree1cee9a600b38c6207f39a0318de5919c974efc24 /src/util/CactusTimers.c
parent80fe37c6474db51eb2285a3383f4f053ae4d0984 (diff)
Get rid of the prefix when creating named timers so that the other
routines, which take the name as the argument, do work again. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2319 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/util/CactusTimers.c')
-rw-r--r--src/util/CactusTimers.c24
1 files changed, 6 insertions, 18 deletions
diff --git a/src/util/CactusTimers.c b/src/util/CactusTimers.c
index 9383523e..53e2899b 100644
--- a/src/util/CactusTimers.c
+++ b/src/util/CactusTimers.c
@@ -149,29 +149,17 @@ const char *CCTK_TimerName (int timer_handle)
@routine CCTK_TimerCreate
@date Wed Sep 1 10:09:57 1999
@author Tom Goodale
- @desc
- Creates a new timer
- @enddesc
- @calls
- @calledby
- @history
-
- @endhistory
-
+ @desc
+ Creates a new timer with a given name
+ @enddesc
+ @calls CCTKi_TimerCreate
@@*/
-int CCTK_TimerCreate(const char *name)
+int CCTK_TimerCreate (const char *name)
{
int retval;
- char *timername;
-
-
- /* the name itself might not be unique - so prepend the timer handle */
- timername = (char *) malloc (strlen (name) + 30);
- sprintf (timername, "NAMED TIMER %5d -- %s", n_timers, name);
- retval = CCTKi_TimerCreate (timername);
- free (timername);
+ retval = CCTKi_TimerCreate (name);
return retval;
}