void call_func( ) { timer.Start( timer_id ); xCoo2Csr_Function( true ); timer.Stop( timer_id ); }
void call_func( ) { if( gpuTimer && cpuTimer ) { gpuTimer->Start( gpuTimerID ); cpuTimer->Start( cpuTimerID ); xCoo2Csr_Function( false ); cpuTimer->Stop( cpuTimerID ); gpuTimer->Stop( gpuTimerID ); } else { xCoo2Csr_Function( false ); } }