Click here to Skip to main content
15,905,233 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Timer in AES code Pin
Iain Clarke, Warrior Programmer30-Jul-08 5:26
Iain Clarke, Warrior Programmer30-Jul-08 5:26 
One problem I can see is that one iteration of your work will be so fast that errors in timing (eg GetTickCount used to have a 19ms resolution) will swamp the times you are measuring.

If you put your code in a loop and run it 1000 times, get a time, divide by 1000 and you have a far more reliable figure. By doing a larger sample size, your timings for the two methods should converge, and your question becomes irrelevant.

My knowledge of encryption is at the hand waving stage, so I'm actively avoiding the fine detail of your application.

I don't think you can attach a file to your post - but you can cut and paste in between pre tags.

Iain.
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 
AnswerRe: 64 bit enum? Pin
toxcct30-Jul-08 4:03
toxcct30-Jul-08 4:03 
AnswerRe: 64 bit enum? Pin
CPallini30-Jul-08 5:13
mveCPallini30-Jul-08 5:13 
QuestionHow can I hide main window and modal dialogs of a third-party app? Pin
sashoalm30-Jul-08 2:32
sashoalm30-Jul-08 2:32 
AnswerRe: How can I hide main window and modal dialogs of a third-party app? Pin
Alan Balkany30-Jul-08 3:31
Alan Balkany30-Jul-08 3:31 
GeneralRe: How can I hide main window and modal dialogs of a third-party app? Pin
sashoalm30-Jul-08 3:45
sashoalm30-Jul-08 3:45 
AnswerRe: How can I hide main window and modal dialogs of a third-party app? Pin
vikas amin30-Jul-08 4:42
vikas amin30-Jul-08 4:42 
GeneralRe: How can I hide main window and modal dialogs of a third-party app? Pin
sashoalm30-Jul-08 5:03
sashoalm30-Jul-08 5:03 
QuestionOffice 2007 styles not working in dialogs Pin
Redeye9230-Jul-08 2:06
Redeye9230-Jul-08 2:06 
AnswerRe: Office 2007 styles not working in dialogs Pin
Rob Caldecott30-Jul-08 5:17
Rob Caldecott30-Jul-08 5:17 
GeneralRe: Office 2007 styles not working in dialogs Pin
Redeye9230-Jul-08 6:51
Redeye9230-Jul-08 6:51 

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.