sleep for waiting cWindow showing effect