@@ -422,6 +422,13 @@ struct MPCPeerIO : public MPCIO {
halftriples[i].reset_stats();
}
+
+ void dump_stats(std::ostream &os)
+ {
+ MPCIO::dump_stats(os);
+ os << "Precomputed values used: ";
+ dump_precomp_stats(os);
+ }
};
// A class to represent all of the server party's IO, either to
@@ -68,13 +68,6 @@ static void online_test(MPCIO &mpcio, int num_threads, char **args)
delete[] S;
- if (!is_server) {
- MPCPeerIO &mpcpio = static_cast<MPCPeerIO &>(mpcio);
- mpcpio.dump_precomp_stats(std::cout);
- }
-
- std::cout << "Lamport clock = " << mpcio.lamport << "\n";
delete[] A;