I am looking for a solution to my problem.
What i am working on at the moment is a function that will reset timer each time its called.
So basically when i call timer function it will reset current run time to 0 and restart it self.
If timer will run for 10 seconds (for example) an event will be triggered.
I will call this funtion from a loop.
//executing some code
So how do i achieve that?
How do you reset a timer?
Some code example how its done from a while loop would be great.