Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: nkhambal

Search: Search took 0.04 seconds.

  1. Replies
    13
    Views
    58,497

    Re: How to use timer in Unix ?

    Frankly, I do not really know for sure. But signal handler prototype varies from system to system. On my linux system it has prototype as



    #include <signal.h>

    typedef void...
  2. Replies
    13
    Views
    58,497

    Re: How to use timer in Unix ?

    Well, unfortunately you can't. Work with global variables. They are bad programming choice. But you have a very little choice here.
  3. Replies
    13
    Views
    58,497

    Re: How to use timer in Unix ?

    another example with setitimer() to implement a repetitive timer. Signal handler for SIGALRM signal, resets the timer.



    #include <stdio.h>
    #include <signal.h>
    #include <sys/time.h>

    #define...
  4. Replies
    13
    Views
    58,497

    Re: How to use timer in Unix ?

    You can use setitimer function on Unix to set a timer interval. After the specified timer expires it generates SIGALRM which can be captured using signal() function to call a signal handler...
Results 1 to 4 of 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


On-Demand Webinars (sponsored)