Преглед на файлове

Expose a routine to reset the counts of precomputed values used

Ian Goldberg преди 3 години
родител
ревизия
ee02e44109
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8 0
      mpcio.hpp

+ 8 - 0
mpcio.hpp

@@ -237,6 +237,14 @@ struct MPCPeerIO : public MPCIO {
         }
         os << "\n";
     }
+
+    void reset_precomp_stats()
+    {
+        for (size_t i=0; i<triples.size(); ++i) {
+            triples[i].reset_stats();
+            halftriples[i].reset_stats();
+        }
+    }
 };
 
 // A class to represent all of the server party's IO, either to