瀏覽代碼

Expose a routine to reset the counts of precomputed values used

Ian Goldberg 2 年之前
父節點
當前提交
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