Skip to content

Commit 1073366

Browse files
committed
Avoid using global variable start_time
1 parent ab1b8e6 commit 1073366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C/Distributed/src/TimeLimitDistributedDecentralized2.lf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ reactor Source(num_messages:int(10)) {
1818
tag_t tag = get_current_tag();
1919
lf_print("Source sending %d at tag (%lld, %u).",
2020
self->count,
21-
tag.time - start_time, tag.microstep
21+
tag.time - lf_time_start(), tag.microstep
2222
);
2323
SET(y, self->count);
2424
schedule(a, 0);

0 commit comments

Comments
 (0)