uint64_t nstimestart, nstimeend;
OCL_CHECK(err, err = event.getProfilingInfo<uint64_t>(CL_PROFILING_COMMAND_START,&nstimestart));
OCL_CHECK(err, err = event.getProfilingInfo<uint64_t>(CL_PROFILING_COMMAND_END,&nstimeend));
auto duration = nstimeend-nstimestart;
is the data transfer between the global ram and the FPGA chip also taken into account (not only the FPGA processing) ?
I think the answer is yes but I don't recall exactly where I saw this information...