_ROOT Version: 6.12 _Platform: centos 7 _Compiler: g++ --version 4.8.5
Hello, is there a way to track the time that a script needs to be carried out in the root libraries? Compiling with
> g++ -o script script.cpp `root-config --cflags --glibs`
In pyroot I simply use: import time and the time.time() command
Thanks for your answers!
void stopwatch() { auto timer = new TStopwatch(); timer->Start(); int n = 100000; for (int i=0; i<n; i++) {} cout << "Time for " << n << " iterations of an No_Op loop "<< timer->RealTime() << "s" <<endl; }
Thanks, it is working just fine.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.