Click here to Skip to main content
15,903,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Only copying done not replacing in SHFileOperation !!! Pin
_AnsHUMAN_ 30-Jul-08 18:47
_AnsHUMAN_ 30-Jul-08 18:47 
QuestionRe: Only copying done not replacing in SHFileOperation !!! Pin
David Crow31-Jul-08 5:59
David Crow31-Jul-08 5:59 
Questiondll error Pin
tom groezer30-Jul-08 5:03
tom groezer30-Jul-08 5:03 
AnswerRe: dll error Pin
Chris Losinger30-Jul-08 5:11
professionalChris Losinger30-Jul-08 5:11 
AnswerRe: dll error Pin
Iain Clarke, Warrior Programmer30-Jul-08 5:29
Iain Clarke, Warrior Programmer30-Jul-08 5:29 
GeneralRe: dll error Pin
led mike30-Jul-08 7:55
led mike30-Jul-08 7:55 
AnswerRe: dll error Pin
Mark Salsbery30-Jul-08 6:33
Mark Salsbery30-Jul-08 6:33 
QuestionTimer in AES code Pin
zc12330-Jul-08 3:51
zc12330-Jul-08 3:51 
A piece of code performs AES encryption in the CCM mode. I want to time the encryption time of different text size. I have tried to get the encryption time using 2 different methods. 1st I've timed the main function. 2nd, i've timed the different components separately (CBC encryption time + counter encryption time) and summing at the end to get the total encryption time.

the time difference between the 2 is huge for the same 16 bytes of data. 1st method, time is 0.000293 seconds while 2nd method, time is 12.0055 seconds .

this piece of code is used to calculate time:

sec_init();
start_time = sec();

//piece of code

enctime = (stop_time - start_time);
cout<<endl;
printf("enctime : ");
printf("%lf ", enctime);
cout<<endl;


Can some1 please look into that and tell me where should i put the timer to get the time the program takes to encrypt the data. Tks.
AnswerRe: Timer in AES code Pin
Iain Clarke, Warrior Programmer30-Jul-08 4:23
Iain Clarke, Warrior Programmer30-Jul-08 4:23 
GeneralRe: Timer in AES code Pin
zc12330-Jul-08 5:08
zc12330-Jul-08 5:08 
GeneralRe: Timer in AES code Pin
Iain Clarke, Warrior Programmer30-Jul-08 5:26
Iain Clarke, Warrior Programmer30-Jul-08 5:26 
GeneralRe: Timer in AES code Pin
zc12330-Jul-08 5:34
zc12330-Jul-08 5:34 
QuestionVisual Studio 2005 project loading Pin
tom groezer30-Jul-08 3:39
tom groezer30-Jul-08 3:39 
AnswerRe: Visual Studio 2005 project loading Pin
KarstenK30-Jul-08 3:52
mveKarstenK30-Jul-08 3:52 
GeneralRe: Visual Studio 2005 project loading Pin
tom groezer30-Jul-08 5:06
tom groezer30-Jul-08 5:06 
GeneralRe: Visual Studio 2005 project loading Pin
tom groezer30-Jul-08 5:19
tom groezer30-Jul-08 5:19 
QuestionRe: Visual Studio 2005 project loading Pin
Mark Salsbery30-Jul-08 6:38
Mark Salsbery30-Jul-08 6:38 
QuestionSimple menu question Pin
masnu30-Jul-08 3:36
masnu30-Jul-08 3:36 
AnswerRe: Simple menu question Pin
vikas amin30-Jul-08 4:28
vikas amin30-Jul-08 4:28 
AnswerRe: Simple menu question Pin
Iain Clarke, Warrior Programmer30-Jul-08 4:32
Iain Clarke, Warrior Programmer30-Jul-08 4:32 
AnswerRe: Simple menu question Pin
Mark Salsbery30-Jul-08 6:44
Mark Salsbery30-Jul-08 6:44 
Question64 bit enum? Pin
Rob Caldecott30-Jul-08 3:30
Rob Caldecott30-Jul-08 3:30 
AnswerRe: 64 bit enum? Pin
sashoalm30-Jul-08 3:52
sashoalm30-Jul-08 3:52 
GeneralRe: 64 bit enum? Pin
Rob Caldecott30-Jul-08 3:57
Rob Caldecott30-Jul-08 3:57 
GeneralRe: 64 bit enum? Pin
Randor 30-Jul-08 4:29
professional Randor 30-Jul-08 4:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.