[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kst/portto4/kst/src/libkst
From:       Peter Kümmel <syntheticpp () gmx ! net>
Date:       2010-11-21 1:57:24
Message-ID: 20101121015724.3B2A3AC8A0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1199221 by kuemmel:

OSX fix

 M  +3 -2      measuretime.cpp  


--- branches/work/kst/portto4/kst/src/libkst/measuretime.cpp #1199220:1199221
@@ -81,15 +81,16 @@
 
 void MeasureTime::measure()
 {
+  double now = 0;
 #ifdef Q_OS_WIN
   LARGE_INTEGER st;
   QueryPerformanceCounter(&st);
-  double now = st.QuadPart * frequency;
+  now = st.QuadPart * frequency;
 #else
 #ifndef Q_OS_MAC  
   timespec t;
   clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &t);
-  double now = 1.0 * t.tv_sec + 1e-9 * t.tv_nsec;
+  now = 1.0 * t.tv_sec + 1e-9 * t.tv_nsec;
 #endif
 #endif
   interval += now - started;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic