Commit e8eca9fe authored by Quentin Khan's avatar Quentin Khan

CKernelApi: fix timers compilation

parent ec0b3a73
...@@ -820,15 +820,17 @@ public: ...@@ -820,15 +820,17 @@ public:
* get the time spent in each operator. * get the time spent in each operator.
*/ */
virtual void get_timers(FReal * Timers){ virtual void get_timers(FReal * Timers){
const FTic * timers = algoTimer->getAllTimers(); Timers[0] = algoTimer->Timers["P2M"].elapsed();
int nbTimers = algoTimer->getNbOfTimerRecorded(); Timers[1] = algoTimer->Timers["M2M"].elapsed();
for(int idTimer = 0; idTimer<nbTimers ; ++idTimer){ Timers[2] = algoTimer->Timers["M2L"].elapsed();
Timers[idTimer] = timers[idTimer].elapsed(); Timers[3] = algoTimer->Timers["L2L"].elapsed();
} Timers[4] = algoTimer->Timers["L2P"].elapsed();
Timers[5] = algoTimer->Timers["P2P"].elapsed();
Timers[6] = algoTimer->Timers["NearField"].elapsed();
} }
virtual int get_nb_timers(){ virtual int get_nb_timers(){
return algoTimer->getNbOfTimerRecorded(); return FAlgorithmTimers::nbTimers;
} }
virtual void set_upper_limit(int upperLimit){ virtual void set_upper_limit(int upperLimit){
......
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