X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/9940769baee7e6304a17153ade7f05218b343e52..c96430e0c7c0b315f878471051660405d3f89b99:/IDA_new/ida_gf65_paper3.cpp?ds=inline diff --git a/IDA_new/ida_gf65_paper3.cpp b/IDA_new/ida_gf65_paper3.cpp index 41440db..b53b080 100644 --- a/IDA_new/ida_gf65_paper3.cpp +++ b/IDA_new/ida_gf65_paper3.cpp @@ -507,11 +507,13 @@ int main(int argc, char **argv) // sleep(2); 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<1000;i++) { + matC=matrix_multiply(&gf, matG, matS, n, t, t, len, w,&toto); + } auto end = std::chrono::system_clock::now(); std::chrono::duration elapsed_seconds = end-start; total_time+=elapsed_seconds.count(); -// cout << "elapsed time: " << elapsed_seconds.count() << "s\n"; + cout << "elapsed time: " << elapsed_seconds.count() << "s "; // display(matC,t,t); @@ -632,7 +634,7 @@ int main(int argc, char **argv) // sleep(2); start = std::chrono::system_clock::now(); - float toto=0.001; + toto=0.001; for(int i=0;i<1000;i++) { matS2=matrix_multiply(&gf, matInvGs, matCs, t, t, t, len, w, &toto);