diff --git a/include/verilated_replay.cpp b/include/verilated_replay.cpp index 52fbcb411..23cd50712 100644 --- a/include/verilated_replay.cpp +++ b/include/verilated_replay.cpp @@ -115,9 +115,6 @@ void VerilatedReplay::fstCb(uint64_t time, fstHandle facidx, m_simTime = m_time; } - // TODO -- remove - VL_PRINTF("%lu %u %s\n", time, facidx, valuep); - if (m_outputHandles.empty() || m_inputHandles.find(facidx) != m_inputHandles.end()) { handleInput(facidx, valuep, len); } else { diff --git a/include/verilated_replay_main.cpp b/include/verilated_replay_main.cpp index 31f4f6e16..f4084ff51 100644 --- a/include/verilated_replay_main.cpp +++ b/include/verilated_replay_main.cpp @@ -25,6 +25,12 @@ #include "verilated_replay.h" +// TODO -- I know this is C++11 . . . figure this out +#include +#include +#include + +using namespace std::chrono; double simTime = 0; double sc_time_stamp() { @@ -40,7 +46,11 @@ int main(int argc, char** argv) { if (replay.init()) exit(-1); + high_resolution_clock::time_point start = high_resolution_clock::now(); if (replay.replay()) exit(-1); + high_resolution_clock::time_point end = high_resolution_clock::now(); + VL_PRINTF("Replay took %ld ns\n", + std::chrono::duration_cast(end-start).count()); return 0; }