From: jzhou Date: Fri, 6 Jan 2012 22:21:16 +0000 (+0000) Subject: add System.nanoTimes() support in MGC version X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=709fcfaa2b223e8ad45eb5be456563a4e307474b;p=IRC.git add System.nanoTimes() support in MGC version --- 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