WM_TIMER equivalent in C

Hi,
1. I need to write a daemon which calls a method every 10 seconds.
In Windows I can do this by creating a hiddenwindow, and call the method in WM_TIMER message handler.

2. I need to do it in Linux with C. Hence I want to know about timer operations in C, so that I can call a method periodically.(Without wasting the CPU time)

3. Any example programs will be helpful.

Any help is appreciated.

Comments

  • : Hi,
    : 1. I need to write a daemon which calls a method every 10 seconds.
    : In Windows I can do this by creating a hiddenwindow, and call the method in WM_TIMER message handler.
    :
    : 2. I need to do it in Linux with C. Hence I want to know about timer operations in C, so that I can call a method periodically.(Without wasting the CPU time)
    :
    : 3. Any example programs will be helpful.
    :
    : Any help is appreciated.
    :
    :

    Could you just sleep 10 second?
  • : Hi,
    : 1. I need to write a daemon which calls a method every 10 seconds.
    : In Windows I can do this by creating a hiddenwindow, and call the method in WM_TIMER message handler.
    :
    : 2. I need to do it in Linux with C. Hence I want to know about timer operations in C, so that I can call a method periodically.(Without wasting the CPU time)
    :
    : 3. Any example programs will be helpful.
    :
    : Any help is appreciated.

    Look at .
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories