/[svn]/linuxsampler/trunk/src/common/RTMath.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/RTMath.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2942 by schoenebeck, Wed Jul 13 15:51:06 2016 UTC revision 2943 by schoenebeck, Wed Jul 13 16:04:36 2016 UTC
# Line 88  RTMathBase::usecs_t RTMathBase::unsafeMi Line 88  RTMathBase::usecs_t RTMathBase::unsafeMi
88      LARGE_INTEGER f;      LARGE_INTEGER f;
89      QueryPerformanceCounter(&t);      QueryPerformanceCounter(&t);
90      if (!QueryPerformanceFrequency(&f)) return 0;      if (!QueryPerformanceFrequency(&f)) return 0;
91      return usecs_t( double(t) / double(f) * 1000000.0 );      return usecs_t( double(t.QuadPart) / double(f.QuadPart) * 1000000.0 );
92      #elif defined(__APPLE__)      #elif defined(__APPLE__)
93      static mach_timebase_info_data_t tb;      static mach_timebase_info_data_t tb;
94      double t = mach_absolute_time();      double t = mach_absolute_time();

Legend:
Removed from v.2942  
changed lines
  Added in v.2943

  ViewVC Help
Powered by ViewVC