X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/36e6e6be882eca5756f9fa3506e0629d2b54ddc1..33996e0790e42d311ac3c4e04f92759acb697bde:/IDA_new/ida_gf65_paper3.cpp

diff --git a/IDA_new/ida_gf65_paper3.cpp b/IDA_new/ida_gf65_paper3.cpp
index 9970012..ccc7a69 100644
--- a/IDA_new/ida_gf65_paper3.cpp
+++ b/IDA_new/ida_gf65_paper3.cpp
@@ -504,14 +504,18 @@ int main(int argc, char **argv)
   display(matG, n, t);
 */
 
+  int nb_iter=1000;
+  
 //  sleep(2);
-  float toto=0.001
+  float toto=0.001;
   auto start = std::chrono::system_clock::now();
-  matC=matrix_multiply(&gf, matG, matS, n, t, t, len, w,&toto);
+  for(int i=0;i<nb_iter;i++) {
+    matC=matrix_multiply(&gf, matG, matS, n, t, t, len, w,&toto);
+  }
   auto end = std::chrono::system_clock::now();
   std::chrono::duration<double> elapsed_seconds = end-start;
   total_time+=elapsed_seconds.count();
-//  cout << "elapsed time: " << elapsed_seconds.count() << "s\n";
+  cout << "elapsed time: " << elapsed_seconds.count() << " "<<toto<<"       ";
 
 //  display(matC,t,t);
 
@@ -632,8 +636,8 @@ int main(int argc, char **argv)
 
 //  sleep(2);
   start = std::chrono::system_clock::now();
-  float toto=0.001;
-  for(int i=0;i<1000;i++) {
+   toto=0.001;
+  for(int i=0;i<nb_iter;i++) {
 
     matS2=matrix_multiply(&gf, matInvGs, matCs, t, t, t, len, w, &toto);