aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/main.cc
diff options
context:
space:
mode:
authorKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-16 14:51:25 -0800
committerKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-17 12:03:16 -0800
commit7c1544f4d8e5dc75d6d6a8cf973888f5c94bd1b9 (patch)
tree842b999ee2af18571b97ce22bffa537b8856a25c /fpga_interchange/main.cc
parent6f1c835221d18199962273def4386e0385820c67 (diff)
downloadnextpnr-7c1544f4d8e5dc75d6d6a8cf973888f5c94bd1b9.tar.gz
nextpnr-7c1544f4d8e5dc75d6d6a8cf973888f5c94bd1b9.tar.bz2
nextpnr-7c1544f4d8e5dc75d6d6a8cf973888f5c94bd1b9.zip
Continue fixes.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'fpga_interchange/main.cc')
-rw-r--r--fpga_interchange/main.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/fpga_interchange/main.cc b/fpga_interchange/main.cc
index 48b07584..ca9b1704 100644
--- a/fpga_interchange/main.cc
+++ b/fpga_interchange/main.cc
@@ -21,6 +21,8 @@
#ifdef MAIN_EXECUTABLE
#include <fstream>
+#include <chrono>
+
#include "command.h"
#include "design_utils.h"
#include "jsonwrite.h"
@@ -67,6 +69,7 @@ void FpgaInterchangeCommandHandler::customBitstream(Context *ctx)
std::unique_ptr<Context> FpgaInterchangeCommandHandler::createContext(std::unordered_map<std::string, Property> &values)
{
+ auto start = std::chrono::high_resolution_clock::now();
ArchArgs chipArgs;
if (!vm.count("chipdb")) {
log_error("chip database binary must be provided\n");
@@ -88,6 +91,9 @@ std::unique_ptr<Context> FpgaInterchangeCommandHandler::createContext(std::unord
}
}
+ auto end = std::chrono::high_resolution_clock::now();
+ log_info("createContext time %.02fs\n", std::chrono::duration<float>(end - start).count());
+
return ctx;
}