rahul
2012-05-08 05:46:28 UTC
the code below is used to calculate the execution time of method called.
CipherText.append(mm.encryptString(plaintext));
{
startTimeEnc = System.currentTimeMillis();
StepsText.append("keyword : "+keyworD+'\n');
StepsText.append("PlainText : "+plaintext+'\n');
bytesEnc=plaintext.getBytes().length;
StepsText.append("PlainText size : "+bytesEnc+'\n');
mm= new Blowfishst( keyworD);
CipherText.append(mm.encryptString(plaintext));
endTimeEnc = System.currentTimeMillis();
long exeTimeEnc=(endTimeEnc-startTimeEnc);
System.out.println("execution time="+exeTimeEnc+"MilliSec");
trputEnc=(bytesEnc)/exeTimeEnc;
System.out.println("Throughput="+trputEnc+" bit/Sec");
}
this method " CipherText.append(mm.encryptString(plaintext));" is another program and on running the code i am getting execution time of 109 millisec for differnt data sizes .
can u please explain what is going on i cant understand this and i need different execution times to create graph for analysis