diff options
Diffstat (limited to 'fpga_interchange/main.cc')
-rw-r--r-- | fpga_interchange/main.cc | 6 |
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; } |