Dear ROOTers,
I do not understand why the function (in file "b.C")
void b(void)
{
TPaveText t(0.05,0.05,0.95,0.95);
for( int i=0; i<100000; i++ )
{
gBenchmark->Start("A");
t.Clear();
t.AddText("Slower and slower....");
t.Draw();
gBenchmark->Show("A");
}
}
consumes more and more time for each cycle. Try to run
$ root -b b.C
and you'll get
A : Real Time = 0.01 seconds Cpu Time = 0.01 seconds
... skipped ...
A : Real Time = 0.53 seconds Cpu Time = 0.27 seconds
... skipped ...
A : Real Time = 1.07 seconds Cpu Time = 0.46 seconds
... and so on ...
I use root 2.21/08.
With best wishes,
Alexander.
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:39 MET