Hi,
I'm trying to instrument some code with a simple timer, using time.h:
#include <time.h>
void test()
{
clock_t tStart = clock();
// Costly code here
std::cout << "Execution time: " << ((double)((clock() - tStart) /
CLOCKS_PER_SEC)) << std::endl;
}
However, this fails due to CLOCKS_PER_SEC being undefined. Is there any way to do timing with ROOT?
Regards,
James.
Received on Thu Nov 12 2009 - 12:55:49 CET
This archive was generated by hypermail 2.2.0 : Thu Nov 12 2009 - 17:50:04 CET