aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/main.cc
diff options
context:
space:
mode:
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..5a49cbdc 100644
--- a/fpga_interchange/main.cc
+++ b/fpga_interchange/main.cc
@@ -20,7 +20,9 @@
#ifdef MAIN_EXECUTABLE
+#include <chrono>
#include <fstream>
+
#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;
}