switch cases and timers

This is a discussion on switch cases and timers within the C++ Programming forums, part of the General Programming Boards category; Hi all, i'm new to using multiple timers. Im trying to plan a short project. I was wondering if it's ...

switch cases and timers

Hi all, i'm new to using multiple timers. Im trying to plan a short project. I was wondering if it's possible to store a value from one timer into a variable that a second timer would be able to use. The purpose would be to have TIMER_ONE check and redetermine at long intervals the value of var1 and have TIMER_TWO use that value for a different purpose on a short interval. Any ideas or is this possible at all?

is that an MS-Windows program where the timer functions were set with win32 api SetTimer() function ? If that is correct, then the timer events happen sequentiallly, not concurrently. So yes, the function to work something like you posted