Delay in processing

Please

Is this all done in global scope or in a/multiple functions?