I need to repeate a piece of code in my method every second. I don't want to use NSTimer or something like that because the code needs to be in the same method because of some variables. I am looking maybe for a way with grand central dispatch but I have no idea how. Here is an example of what I want to achieve:
- (void)myMethod {
     // Repeat this code every second
     my awesome code
     // End of code repetition
     other awesome code
}
 
     
    