add System.nanoTimes() support in MGC version
authorjzhou <jzhou>
Fri, 6 Jan 2012 22:21:16 +0000 (22:21 +0000)
committerjzhou <jzhou>
Fri, 6 Jan 2012 22:21:16 +0000 (22:21 +0000)
Robust/src/Runtime/bamboo/multicoreruntime.c

index 3b3eca0a6d88856ce229985896b7265ecbd8c675..f02d36dc6d3b5e9d4538d696bbbe860666e4f9d0 100644 (file)
@@ -338,6 +338,13 @@ long long CALL00(___System______currentTimeMillis____) {
 }
 #endif
 
+#ifdef D___System______nanoTime____ 
+long long CALL00(___System______nanoTime____) {
+  //TilePro64 is 700mHz
+  return ((unsigned long long)BAMBOO_GET_EXE_TIME())/700;
+}
+#endif
+
 #ifdef D___System______setgcprofileflag____
 void CALL00(___System______setgcprofileflag____) {
 #ifdef GC_PROFILE