projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d50b17
)
add System.nanoTimes() support in MGC version
author
jzhou
<jzhou>
Fri, 6 Jan 2012 22:21:16 +0000
(22:21 +0000)
committer
jzhou
<jzhou>
Fri, 6 Jan 2012 22:21:16 +0000
(22:21 +0000)
Robust/src/Runtime/bamboo/multicoreruntime.c
patch
|
blob
|
history
diff --git
a/Robust/src/Runtime/bamboo/multicoreruntime.c
b/Robust/src/Runtime/bamboo/multicoreruntime.c
index 3b3eca0a6d88856ce229985896b7265ecbd8c675..f02d36dc6d3b5e9d4538d696bbbe860666e4f9d0 100644
(file)
--- 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