I believe that GetTime does not update concurrent with the UI. This means that GetTime will not change value while this is running. I am not completely certain about this though. It might only be time() that has this issue. It should be tested, if it haven't been already.