Skip to content
Browse files

Use the mach_time only on iOS

Directly querying the CPU should work on all X86 machines

Signed-off-by: Stefan Marr <git@stefan-marr.de>
  • Loading branch information...
1 parent 8162974 commit 2f93789b6ecd16533eb6f78d448373af9fae68fe @smarr committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 vm/src/primitives/RVMPlugin.cpp
View
4 vm/src/primitives/RVMPlugin.cpp
@@ -702,7 +702,7 @@ static int primitiveMicrosecondClock() {
return 0;
}
-# if On_Apple
+# if On_iOS
# include <mach/mach_time.h>
# endif
@@ -716,7 +716,7 @@ static int primitiveCycleCounter() {
// burrow down below OS_Interface level to avoid effect of Count_Cycles flag
-# if On_Apple
+# if On_iOS
// Source: https://developer.apple.com/library/mac/#qa/qa1398/_index.html
uint64_t absolute_time = mach_absolute_time();

0 comments on commit 2f93789

Please sign in to comment.
Something went wrong with that request. Please try again.