Commit 0537bf15 by Ben Elliston Committed by Ben Elliston

timevar.h (timevar_get): Remove.

	* timevar.h (timevar_get): Remove.
	* timevar.c (timevar_get): Remove unused function.

From-SVN: r89975
parent 708b3421
2004-11-02 Ben Elliston <bje@au.ibm.com>
* timevar.h (timevar_get): Remove.
* timevar.c (timevar_get): Remove unused function.
2004-11-02 Joseph S. Myers <joseph@codesourcery.com> 2004-11-02 Joseph S. Myers <joseph@codesourcery.com>
* doc/include/texinfo.tex: Update from Texinfo CVS. * doc/include/texinfo.tex: Update from Texinfo CVS.
......
...@@ -371,31 +371,6 @@ timevar_stop (timevar_id_t timevar) ...@@ -371,31 +371,6 @@ timevar_stop (timevar_id_t timevar)
timevar_accumulate (&tv->elapsed, &tv->start_time, &now); timevar_accumulate (&tv->elapsed, &tv->start_time, &now);
} }
/* Fill the elapsed time for TIMEVAR into ELAPSED. Returns
update-to-date information even if TIMEVAR is currently running. */
void
timevar_get (timevar_id_t timevar, struct timevar_time_def *elapsed)
{
struct timevar_def *tv = &timevars[timevar];
struct timevar_time_def now;
*elapsed = tv->elapsed;
/* Is TIMEVAR currently running as a standalone timer? */
if (tv->standalone)
{
get_time (&now);
timevar_accumulate (elapsed, &tv->start_time, &now);
}
/* Or is TIMEVAR at the top of the timer stack? */
else if (stack->timevar == tv)
{
get_time (&now);
timevar_accumulate (elapsed, &start_time, &now);
}
}
/* Summarize timing variables to FP. The timing variable TV_TOTAL has /* Summarize timing variables to FP. The timing variable TV_TOTAL has
a special meaning -- it's considered to be the total elapsed time, a special meaning -- it's considered to be the total elapsed time,
for normalizing the others, and is displayed last. */ for normalizing the others, and is displayed last. */
......
...@@ -84,7 +84,6 @@ extern void timevar_push (timevar_id_t); ...@@ -84,7 +84,6 @@ extern void timevar_push (timevar_id_t);
extern void timevar_pop (timevar_id_t); extern void timevar_pop (timevar_id_t);
extern void timevar_start (timevar_id_t); extern void timevar_start (timevar_id_t);
extern void timevar_stop (timevar_id_t); extern void timevar_stop (timevar_id_t);
extern void timevar_get (timevar_id_t, struct timevar_time_def *);
extern void timevar_print (FILE *); extern void timevar_print (FILE *);
/* Provided for backward compatibility. */ /* Provided for backward compatibility. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment