From 709fcfaa2b223e8ad45eb5be456563a4e307474b Mon Sep 17 00:00:00 2001 From: jzhou Date: Fri, 6 Jan 2012 22:21:16 +0000 Subject: [PATCH] add System.nanoTimes() support in MGC version --- Robust/src/Runtime/bamboo/multicoreruntime.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Robust/src/Runtime/bamboo/multicoreruntime.c b/Robust/src/Runtime/bamboo/multicoreruntime.c index 3b3eca0a..f02d36dc 100644 --- a/Robust/src/Runtime/bamboo/multicoreruntime.c +++ b/Robust/src/Runtime/bamboo/multicoreruntime.c @@ -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 -- 2.34.1