comparison src/parallel_execution/time.c @ 149:63ab65b28466

Add Gearef macro
author one
date Thu, 10 Nov 2016 20:37:52 +0900
parents 473b7d990a1f
children
comparison
equal deleted inserted replaced
148:473b7d990a1f 149:63ab65b28466
12 12
13 goto meta(context, time->next); 13 goto meta(context, time->next);
14 } 14 }
15 15
16 __code start_time_stub(struct Context* context) { 16 __code start_time_stub(struct Context* context) {
17 goto start_time(context, &context->data[D_Time]->time); 17 goto start_time(context, &context->data[D_Time]->Time);
18 } 18 }
19 19
20 __code end_time(struct Context* context, struct Time* time) { 20 __code end_time(struct Context* context, struct Time* time) {
21 struct timeval tv; 21 struct timeval tv;
22 gettimeofday(&tv, NULL); 22 gettimeofday(&tv, NULL);
25 25
26 goto meta(context, time->next); 26 goto meta(context, time->next);
27 } 27 }
28 28
29 __code end_time_stub(struct Context* context) { 29 __code end_time_stub(struct Context* context) {
30 goto end_time(context, &context->data[D_Time]->time); 30 goto end_time(context, Gearef(context, Time));
31 } 31 }