Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: calculate elapsed time Pin
George_George23-Jan-07 16:17
George_George23-Jan-07 16:17 
AnswerRe: calculate elapsed time Pin
Roger Stoltz18-Jan-07 21:56
Roger Stoltz18-Jan-07 21:56 
GeneralRe: calculate elapsed time Pin
George_George18-Jan-07 22:07
George_George18-Jan-07 22:07 
GeneralRe: calculate elapsed time Pin
Roger Stoltz18-Jan-07 22:45
Roger Stoltz18-Jan-07 22:45 
GeneralRe: calculate elapsed time Pin
George_George18-Jan-07 23:07
George_George18-Jan-07 23:07 
GeneralRe: calculate elapsed time Pin
Roger Stoltz18-Jan-07 23:11
Roger Stoltz18-Jan-07 23:11 
GeneralRe: calculate elapsed time Pin
George_George19-Jan-07 0:50
George_George19-Jan-07 0:50 
GeneralRe: calculate elapsed time Pin
Roger Stoltz19-Jan-07 1:53
Roger Stoltz19-Jan-07 1:53 
George_George wrote:
I think it could only provide callback approach in a regular interval. Is it correct?


Partly.
I think the most common way to use a multimedia timer is to let the timer set an event when it expires which unleashes a thread that is waiting on the event.
However, it still acts as a periodic timer.

George_George wrote:
I think it does not apply to my requirement, do you agree?


I fully agree. Like i said, I would go for the performance counter in this situation.
Don't forget to add error checking in case the performance counter is unsupported and you also have to call QueryPerformanceFrequency in order to know the resolution of the performance counter. You'll find information about this if you follow the link I provided in my first post.

--
Roger


"It's supposed to be hard, otherwise anybody could do it!" - selfquote

GeneralRe: calculate elapsed time Pin
George_George19-Jan-07 2:11
George_George19-Jan-07 2:11 
GeneralRe: calculate elapsed time Pin
Roger Stoltz19-Jan-07 2:22
Roger Stoltz19-Jan-07 2:22 
GeneralRe: calculate elapsed time Pin
George_George19-Jan-07 22:47
George_George19-Jan-07 22:47 
GeneralRe: calculate elapsed time Pin
Mark Salsbery20-Jan-07 6:14
Mark Salsbery20-Jan-07 6:14 
GeneralRe: calculate elapsed time Pin
George_George20-Jan-07 21:23
George_George20-Jan-07 21:23 
GeneralRe: calculate elapsed time Pin
Mark Salsbery21-Jan-07 7:26
Mark Salsbery21-Jan-07 7:26 
GeneralRe: calculate elapsed time Pin
George_George21-Jan-07 17:45
George_George21-Jan-07 17:45 
GeneralRe: calculate elapsed time Pin
Mark Salsbery22-Jan-07 6:16
Mark Salsbery22-Jan-07 6:16 
GeneralRe: calculate elapsed time Pin
George_George22-Jan-07 22:53
George_George22-Jan-07 22:53 
QuestionHow to check Printer connectivity? Pin
birajendu18-Jan-07 20:21
birajendu18-Jan-07 20:21 
QuestionHow to change colour through space bar of a drawn object in windows programming Pin
cshah218-Jan-07 20:11
cshah218-Jan-07 20:11 
QuestionRe: How to change colour through space bar of a drawn object in windows programming Pin
prasad_som18-Jan-07 20:21
prasad_som18-Jan-07 20:21 
AnswerRe: How to change colour through space bar of a drawn object in windows programming Pin
cshah218-Jan-07 20:31
cshah218-Jan-07 20:31 
AnswerRe: How to change colour through space bar of a drawn object in windows programming Pin
Hamid_RT18-Jan-07 20:27
Hamid_RT18-Jan-07 20:27 
GeneralRe: How to change colour through space bar of a drawn object in windows programming Pin
cshah218-Jan-07 20:31
cshah218-Jan-07 20:31 
GeneralRe: How to change colour through space bar of a drawn object in windows programming Pin
nutkase18-Jan-07 21:28
nutkase18-Jan-07 21:28 
GeneralRe: How to change colour through space bar of a drawn object in windows programming Pin
cshah218-Jan-07 22:01
cshah218-Jan-07 22:01 

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.