summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-11-20 20:59:20 +0200
committerTor Lillqvist <tml@collabora.com>2013-11-20 21:00:02 +0200
commitbd390560539cec344323e1bc68b7e19a0aa4fbb3 (patch)
tree59851ca518ee31e9a01dd299b74c262e8e519392 /sc
parent43da86747ada05c7a019ef0e5a54dc1e6a3e32b3 (diff)
Rename timerStop() to timerCurrent() as it doesn't "stop" anything
Change-Id: I99dbee00422ac9a066479231b32112551a317e75
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/opencl/opencl_device.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/opencl/opencl_device.cxx b/sc/source/core/opencl/opencl_device.cxx
index cc9be18af9c7..963e10a3fbd1 100644
--- a/sc/source/core/opencl/opencl_device.cxx
+++ b/sc/source/core/opencl/opencl_device.cxx
@@ -144,8 +144,8 @@ void timerStart(timer* mytimer)
#endif
}
-/* Timer functions - stop timer and return difference */
-double timerStop(timer* mytimer)
+/* Timer functions - get current value */
+double timerCurrent(timer* mytimer)
{
#ifdef _WIN32
LARGE_INTEGER stop, frequency;
@@ -342,7 +342,7 @@ ds_status evaluateScoreForDevice(ds_device* device, void* evalData)
clReleaseKernel(clKernel);
device->score = (void*)new LibreOfficeDeviceScore;
- ((LibreOfficeDeviceScore*)device->score)->fTime = timerStop(&kernelTime);
+ ((LibreOfficeDeviceScore*)device->score)->fTime = timerCurrent(&kernelTime);
((LibreOfficeDeviceScore*)device->score)->bNoCLErrors = true;
}
@@ -375,7 +375,7 @@ ds_status evaluateScoreForDevice(ds_device* device, void* evalData)
}
device->score = (void*)new LibreOfficeDeviceScore;
- ((LibreOfficeDeviceScore*)device->score)->fTime = timerStop(&kernelTime);
+ ((LibreOfficeDeviceScore*)device->score)->fTime = timerCurrent(&kernelTime);
((LibreOfficeDeviceScore*)device->score)->bNoCLErrors = true;
}
return DS_SUCCESS;