CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2011
    Location
    India
    Posts
    333

    Multiple Timer for Linux - Reg

    Hi,

    I'm using Timer function code for Linux and Windows. Executed this concept in my project(linux based), working good.

    i want to use more than one timer. I was change the code and execute, now also running only one timer which one was last defined.
    Code:
         if(start_timer(1000, &timer_handler))
         {
           cout<<"\n timer error\n";
           //return(1);
         }
        if(start_delaytimer(2000, &timer_handler1))
         {
           cout<<"\n timer error\n";
           //return(1);
         }
         while(1)
         {
           if(var > 10 || var1 > 10)
           {
             break;
           }
         }
      
         stop_timer();
         stop_delaytimer();
    Is possible? Pls help me.
    Attached Files Attached Files
    Regards,

    SaraswathiSrinath

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Multiple Timer for Linux - Reg

    Did you try to google for multiple timers c++ linux?
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured