Click here to Skip to main content
15,891,943 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Select Row in ListView Pin
RadioOpa6-Feb-06 4:45
RadioOpa6-Feb-06 4:45 
QuestionTimer Pin
LCI6-Feb-06 3:36
LCI6-Feb-06 3:36 
AnswerRe: Timer Pin
Cedric Moonen6-Feb-06 3:38
Cedric Moonen6-Feb-06 3:38 
Answer[Message Deleted] Pin
ddmcr6-Feb-06 3:45
ddmcr6-Feb-06 3:45 
GeneralRe: Timer Pin
James R. Twine6-Feb-06 4:04
James R. Twine6-Feb-06 4:04 
GeneralRe: Timer Pin
Ryan Binns6-Feb-06 17:28
Ryan Binns6-Feb-06 17:28 
GeneralRe: Timer Pin
James R. Twine7-Feb-06 11:29
James R. Twine7-Feb-06 11:29 
AnswerRe: Timer Pin
James R. Twine6-Feb-06 3:58
James R. Twine6-Feb-06 3:58 
   The quick-n-dirty way is to call GetTickCount() before and after and compare the difference.  However, the resolution of that function is not usually 1ms.  For example, it is possible to call the function before and after a method that takes 5ms and get back a difference of 0ms one time and 15ms the next.

   If you need better accuracy, I would suggest a multimedia timer or something similar.

   it MIGHT help to call Sleep() right before calling into the function if you think the function executes is less than a quantum, to try to avoid a context switch while the function is executing.

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
AnswerRe: Timer Pin
normanS6-Feb-06 18:20
normanS6-Feb-06 18:20 
QuestionODE equation solver Pin
Ming Luo6-Feb-06 3:25
Ming Luo6-Feb-06 3:25 
AnswerRe: ODE equation solver Pin
minox6-Feb-06 8:11
minox6-Feb-06 8:11 
Questionprinting with MFC Pin
vikas amin6-Feb-06 2:32
vikas amin6-Feb-06 2:32 
AnswerRe: printing with MFC Pin
David Crow6-Feb-06 2:58
David Crow6-Feb-06 2:58 
AnswerRe: printing with MFC Pin
PJ Arends6-Feb-06 10:54
professionalPJ Arends6-Feb-06 10:54 
AnswerRe: printing with MFC Pin
#realJSOP9-Feb-06 9:30
mve#realJSOP9-Feb-06 9:30 
QuestionDetermining partitions? Pin
pc_dev6-Feb-06 2:22
pc_dev6-Feb-06 2:22 
AnswerRe: Determining partitions? Pin
Rage6-Feb-06 2:46
professionalRage6-Feb-06 2:46 
AnswerRe: Determining partitions? Pin
James R. Twine6-Feb-06 3:01
James R. Twine6-Feb-06 3:01 
QuestionAdding hyperlink in static control/dialog Pin
pc_dev6-Feb-06 2:02
pc_dev6-Feb-06 2:02 
AnswerRe: Adding hyperlink in static control/dialog Pin
Cedric Moonen6-Feb-06 2:18
Cedric Moonen6-Feb-06 2:18 
AnswerRe: Adding hyperlink in static control/dialog Pin
James R. Twine6-Feb-06 2:38
James R. Twine6-Feb-06 2:38 
QuestionCListCtrl run-time creation question Pin
Odiee6-Feb-06 1:48
Odiee6-Feb-06 1:48 
AnswerRe: CListCtrl run-time creation question Pin
Hamid_RT6-Feb-06 3:30
Hamid_RT6-Feb-06 3:30 
QuestionAdd html help to a button Pin
schliz6-Feb-06 1:35
schliz6-Feb-06 1:35 
AnswerRe: Add html help to a button Pin
pc_dev6-Feb-06 1:56
pc_dev6-Feb-06 1:56 

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.