Skip to content

Commit 85a6aed

Browse files
author
xinoip
committed
print delay and arrival at the end of operation
1 parent 594e27d commit 85a6aed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

currentcircuit.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ void CurrentCircuit::topological_sort() {
6060

6161
while (stack.empty() == false) {
6262
int vertex = stack.top();
63-
printf("%s -", circ.elements[vertex].elementName.c_str());
63+
auto& element = circ.elements[vertex];
64+
printf("%s(d:%d)(a:%d) ", element.elementName.c_str(), element.delay, element.arrivalTime);
6465
stack.pop();
6566
}
6667
printf("\n");

0 commit comments

Comments
 (0)