I am gonna use setitimer, or sleep(60) in separate thread. I'll see what's better/easier.

Thank you for suggestions.

SOLVED.