Skip to content

Commit

Permalink
Print all timers in binary machines.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkskeller committed Sep 7, 2022
1 parent 817a9b4 commit 091484b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions GC/ThreadMaster.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ void ThreadMaster<T>::run()
for (auto thread : threads)
thread->join_tape();

Timer timer;
timer.start();
machine.reset_timer();

threads[0]->tape_schedule.push(0);

Expand All @@ -100,7 +99,8 @@ void ThreadMaster<T>::run()
exe_stats.print();
stats.print();

cerr << "Time = " << timer.elapsed() << " seconds" << endl;
machine.print_timers();

cerr << "Data sent = " << stats.sent * 1e-6 << " MB" << endl;

machine.print_global_comm(*P, stats);
Expand Down
4 changes: 2 additions & 2 deletions Processor/BaseMachine.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ class BaseMachine
string domain;
string relevant_opts;

void print_timers();

virtual void load_program(const string& threadname, const string& filename);

public:
Expand Down Expand Up @@ -65,6 +63,8 @@ class BaseMachine
void start(int n);
void stop(int n);

void print_timers();

virtual void reqbl(int) {}

static OTTripleSetup fresh_ot_setup(Player& P);
Expand Down

0 comments on commit 091484b

Please sign in to comment.