I need simple timer that should not mess with the threads,and doesnt use Sleep().
I need something like this:
int main(){
function1 {
whule(1) {
// do stuff
execute evry 30 min function2();
}
}
return 0;
}
So function1 and while(1) must not be slowed down and need to run all the time.
And success of function2() must not affect running the function1.
How to do this?