|
Timed Function in C
Hi folks,
I was wondering (while a program is running) how to make a specific codes/methods to run on a pre-defined time.
Lets say every 2 minutes this codes/methods ,inside the program, would be executed while the said program is still running.
I try searching about this topic through the net , but most of the decent result that I got is about creating a timer.
Any kind help, may it be psuedo code or links, will be much appreciated.
BTW: I'm using MVC6 and my OS is Win2k. the program mentioned here wait for incomming message.The codes/methods that I'm trying to run in a specific time is some sort of "is alive" message (to make sure that the connection between two computer is still on).
regards,
jaro
|