Hi,
> Who would tell me how to get time(consuming time or current time) in a macro?
>
A quick way, is to use gROOT->Time():
root [0] gROOT->Time();
Real time 0:00:05.889220, CP time 0.000
root [1] .x hsimple.C
(class TFile*)0x102037200
Real time 0:00:07.357656, CP time 0.780
A more complete and customizable way is to use TStopwatch.
Cheers,
Philippe.
Received on Sat Jul 18 2009 - 19:51:07 CEST
This archive was generated by hypermail 2.2.0 : Sun Jul 19 2009 - 17:50:01 CEST