diff options
author | Eddie Hung <eddieh@ece.ubc.ca> | 2019-02-09 10:24:40 -0800 |
---|---|---|
committer | Eddie Hung <eddieh@ece.ubc.ca> | 2019-02-09 10:24:40 -0800 |
commit | d964ea911c1de6a646f9fcd46db99b251672babe (patch) | |
tree | 4d7d5fa4fb0dbd5f1e4248dfc407010a8e9f1ed8 /common/router1.cc | |
parent | 0639be79667da425b8f86a401af1fad5c99e1bc7 (diff) | |
parent | a520b38424531e83ef47d2c37aab17a2bc764765 (diff) | |
download | nextpnr-d964ea911c1de6a646f9fcd46db99b251672babe.tar.gz nextpnr-d964ea911c1de6a646f9fcd46db99b251672babe.tar.bz2 nextpnr-d964ea911c1de6a646f9fcd46db99b251672babe.zip |
Merge remote-tracking branch 'origin/master' into regressions
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..28a422c8 100644 --- a/common/router1.cc +++ b/common/router1.cc @@ -17,6 +17,7 @@ * */ +#include <chrono> #include <cmath> #include <queue> @@ -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(); |