|
@@ -12,7 +12,7 @@ namespace igl
|
|
|
# include <windows.h>
|
|
|
inline double igl::get_seconds_hires()
|
|
|
{
|
|
|
- LARGE_INTEGER li_freq, li_current;
|
|
|
+ LARGE_INTEGER li_freq, li_current;
|
|
|
const bool ret = QueryPerformanceFrequency(&li_freq);
|
|
|
const bool ret2 = QueryPerformanceCounter(&li_current);
|
|
|
assert(ret && ret2);
|
|
@@ -20,12 +20,11 @@ inline double igl::get_seconds_hires()
|
|
|
return double(li_current.QuadPart) / double(li_freq.QuadPart);
|
|
|
}
|
|
|
#else
|
|
|
-# include <sys/time.h>
|
|
|
+# include "get_seconds.h"
|
|
|
inline double igl::get_seconds_hires()
|
|
|
{
|
|
|
// Sorry I've no idea how performance counters work on Mac...
|
|
|
- assert(false);
|
|
|
- return 0.0;
|
|
|
+ return igl::get_seconds();
|
|
|
}
|
|
|
#endif
|
|
|
#endif
|