aboutsummaryrefslogtreecommitdiffstats
path: root/common/router1.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2020-02-02 12:16:34 +0100
committerMiodrag Milanovic <mmicko@gmail.com>2020-02-02 12:16:34 +0100
commitf81bd6b1fc10670e18ad9bbdead39cba24421b9b (patch)
treea27e8a14ee856557c40c89a44213a8198a6d7260 /common/router1.cc
parent531b7391808c727a974d39862e3864fbcae47793 (diff)
downloadnextpnr-f81bd6b1fc10670e18ad9bbdead39cba24421b9b.tar.gz
nextpnr-f81bd6b1fc10670e18ad9bbdead39cba24421b9b.tar.bz2
nextpnr-f81bd6b1fc10670e18ad9bbdead39cba24421b9b.zip
Better formatting
Diffstat (limited to 'common/router1.cc')
-rw-r--r--common/router1.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/common/router1.cc b/common/router1.cc
index e1160074..7de8cd09 100644
--- a/common/router1.cc
+++ b/common/router1.cc
@@ -769,15 +769,14 @@ bool router1(Context *ctx, const Router1Cfg &cfg)
int last_arcs_with_ripup = 0;
int last_arcs_without_ripup = 0;
- log_info(" | (re-)routed arcs | delta | remaining| time spent |\n");
- log_info(" | | | | batch| total|\n");
- log_info(" IterCnt | w/ripup wo/ripup | w/r wo/r | arcs| sec| sec|\n");
+ log_info(" | (re-)routed arcs | delta | remaining| time spent |\n");
+ log_info(" IterCnt | w/ripup wo/ripup | w/r wo/r | arcs| batch(sec)| total(sec)|\n");
auto prev_time = rstart;
while (!router.arc_queue.empty()) {
if (++iter_cnt % 1000 == 0) {
auto curr_time = std::chrono::high_resolution_clock::now();
- log_info("%10d | %8d %10d | %4d %5d | %9d| %9.02f| %9.02f|\n", iter_cnt, router.arcs_with_ripup,
+ log_info("%10d | %8d %10d | %4d %5d | %9d| %10.02f| %10.02f|\n", iter_cnt, router.arcs_with_ripup,
router.arcs_without_ripup, router.arcs_with_ripup - last_arcs_with_ripup,
router.arcs_without_ripup - last_arcs_without_ripup, int(router.arc_queue.size()),
std::chrono::duration<float>(curr_time - prev_time).count(),
@@ -807,7 +806,7 @@ bool router1(Context *ctx, const Router1Cfg &cfg)
}
}
auto rend = std::chrono::high_resolution_clock::now();
- log_info("%10d | %8d %10d | %4d %5d | %9d| %9.02f| %9.02f|\n", iter_cnt, router.arcs_with_ripup,
+ log_info("%10d | %8d %10d | %4d %5d | %9d| %10.02f| %10.02f|\n", iter_cnt, router.arcs_with_ripup,
router.arcs_without_ripup, router.arcs_with_ripup - last_arcs_with_ripup,
router.arcs_without_ripup - last_arcs_without_ripup, int(router.arc_queue.size()),
std::chrono::duration<float>(rend - prev_time).count(),