diff options
author | David Shah <dave@ds0.me> | 2019-02-08 12:57:17 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2019-02-08 12:57:17 +0000 |
commit | c900bcc949201cb2f8e303103ce98a8b05505021 (patch) | |
tree | f415795150b6b882a500bf0427fa38cd9099be64 /common/router1.cc | |
parent | bfc96cc962711a6e93eb0b7ce0dfefb6a41d8c31 (diff) | |
parent | e929d221f3395b8c28bf146d1673072077cd8eea (diff) | |
download | nextpnr-c900bcc949201cb2f8e303103ce98a8b05505021.tar.gz nextpnr-c900bcc949201cb2f8e303103ce98a8b05505021.tar.bz2 nextpnr-c900bcc949201cb2f8e303103ce98a8b05505021.zip |
Merge branch 'ecp5func'
Diffstat (limited to 'common/router1.cc')
-rw-r--r-- | common/router1.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/router1.cc b/common/router1.cc index cbc0df90..0dbbfb17 100644 --- a/common/router1.cc +++ b/common/router1.cc @@ -19,6 +19,7 @@ #include <cmath> #include <queue> +#include <chrono> #include "log.h" #include "router1.h" @@ -752,6 +753,7 @@ bool router1(Context *ctx, const Router1Cfg &cfg) log_break(); log_info("Routing..\n"); ctx->lock(); + auto rstart = std::chrono::high_resolution_clock::now(); log_info("Setting up routing queue.\n"); @@ -803,7 +805,9 @@ bool router1(Context *ctx, const Router1Cfg &cfg) router.arcs_with_ripup - last_arcs_with_ripup, router.arcs_without_ripup - last_arcs_without_ripup, int(router.arc_queue.size())); log_info("Routing complete.\n"); + auto rend = std::chrono::high_resolution_clock::now(); ctx->yield(); + log_info("Route time %.02fs\n", std::chrono::duration<float>(rend - rstart).count()); #ifndef NDEBUG router.check(); |