summaryrefslogtreecommitdiffstats
path: root/dis/Pointer/pointer.c
diff options
context:
space:
mode:
authorleochanj <jbakita@cs.unc.edu>2020-10-20 21:46:20 -0400
committerleochanj <jbakita@cs.unc.edu>2020-10-20 21:46:20 -0400
commite2b50015cebdfba68699abd6e8575e38230f5a78 (patch)
tree8bc28e082ad58e5fec07de81fd7c7f9bd9db2686 /dis/Pointer/pointer.c
parent79f30887129145e15e5172e36a7d7602859fc932 (diff)
parentdd606a16e840880e7617b140f6083af8ea83b6b7 (diff)
Merge branch 'rtas20-wip' into sd-vbs
Diffstat (limited to 'dis/Pointer/pointer.c')
-rw-r--r--dis/Pointer/pointer.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/dis/Pointer/pointer.c b/dis/Pointer/pointer.c
index d97f276..0325c64 100644
--- a/dis/Pointer/pointer.c
+++ b/dis/Pointer/pointer.c
@@ -146,10 +146,11 @@ int main(int argc, char **argv) {
146 146
147 endTime = time(NULL); 147 endTime = time(NULL);
148 148
149 volatile int _stop_optimizer = thread[l].hops + l; 149 volatile int _stop_optimizer = 0;
150 /*for (l=0; l<n; l++){ 150 for (l=0; l<n; l++){
151 fprintf(stdout, "%lu hops on thread %d\n", thread[l].hops, l); 151 _stop_optimizer += thread[l].hops + l;
152 }*/ 152 // fprintf(stdout, "%lu hops on thread %d\n", thread[l].hops, l);
153 }
153 154
154 fprintf(stderr, "time for pointer stressmark = %f seconds.\n", 155 fprintf(stderr, "time for pointer stressmark = %f seconds.\n",
155 difftime(endTime, startTime)); 156 difftime(endTime, startTime));