Sleep 100ms inside mainloop