I used several threads in an application and i use a timer too.
I didn't used the MFC.
This timer causes an interruption funtion each 1 millisecond (ms).
So i count, for example, 10 ms, 5 ms even 500 ms.
The problem: I have use the SetTimer function which timer generates an interruption, but when
i count 500ms, the action appears only 2, 3 even 5 seconds later.
I have changed the funtion used to set the timer configuration. So i have used the SetWaitableTimer function which generates an interrution too. I have given the HIGHEST_PRIORITY priority to the handle
of the timer but it was the same work.
I don't where to search the solution...or how to give the priority
I didn't used the MFC.
This timer causes an interruption funtion each 1 millisecond (ms).
So i count, for example, 10 ms, 5 ms even 500 ms.
The problem: I have use the SetTimer function which timer generates an interruption, but when
i count 500ms, the action appears only 2, 3 even 5 seconds later.
I have changed the funtion used to set the timer configuration. So i have used the SetWaitableTimer function which generates an interrution too. I have given the HIGHEST_PRIORITY priority to the handle
of the timer but it was the same work.
I don't where to search the solution...or how to give the priority