Lost in globalTIME

Could you share the code? I am trying to do something similar.