usleep for *nix and Sleep() for Windows.