diff --git a/include/CLUtils.hpp b/include/CLUtils.hpp index ff779ea..a25bdfc 100644 --- a/include/CLUtils.hpp +++ b/include/CLUtils.hpp @@ -449,9 +449,8 @@ namespace clutils GPUTimer (cl::Device &device) { period tPeriod; - size_t tRes = device.getInfo (); // x nanoseconds // Converts nanoseconds to seconds and then to the requested scale - tUnit = (double) tPeriod.den / (double) tPeriod.num / 1000000000.0 * tRes; + tUnit = (double) tPeriod.den / (double) tPeriod.num / 1000000000.0; } /*! \brief Returns a new unpopulated event.