Is it possible to write a program that changes the value of a certain variable when a certain predefined time arrives, without running the same loop over and over again (and stucking the computer)?