You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
943B

  1. /*
  2. Copyright (C) 2006 Nasca Octavian Paul
  3. Author: Nasca Octavian Paul
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of version 2 of the GNU General Public License
  6. as published by the Free Software Foundation.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License (version 2) for more details.
  11. You should have received a copy of the GNU General Public License (version 2)
  12. along with this program; if not, write to the Free Software Foundation,
  13. Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  14. */
  15. #include "globals.h"
  16. #ifdef WINDOWS
  17. #include <windows.h>
  18. #include <winbase.h>
  19. #else
  20. #include <unistd.h>
  21. #endif
  22. void sleep(int ms){
  23. #ifdef WINDOWS
  24. Sleep(1000);
  25. #else
  26. usleep(ms*1000);
  27. #endif
  28. };