[Libreoffice-commits] core.git: sc/source

Tor Lillqvist tml at collabora.com
Wed Nov 20 12:23:35 PST 2013


 sc/source/core/opencl/opencl_device.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cb874affe89e6fed810dd084841af807740750b4
Author: Tor Lillqvist <tml at collabora.com>
Date:   Wed Nov 20 22:22:43 2013 +0200

    Result should be in seconds, not microseconds
    
    Change-Id: Ic269b120c5c29ab12eb982d46132381d1891d217

diff --git a/sc/source/core/opencl/opencl_device.cxx b/sc/source/core/opencl/opencl_device.cxx
index 90b9033..3eb415b 100644
--- a/sc/source/core/opencl/opencl_device.cxx
+++ b/sc/source/core/opencl/opencl_device.cxx
@@ -157,7 +157,7 @@ double timerCurrent(timer* mytimer)
     if (info.numer == 0)
         mach_timebase_info(&info);
     long long stop = mach_absolute_time();
-    double time = ((stop - mytimer->start) * (double) info.numer / info.denom) / 1000.0;
+    double time = ((stop - mytimer->start) * (double) info.numer / info.denom) / 1.0E9;
 #else
     struct timespec s;
     long long stop;


More information about the Libreoffice-commits mailing list