• Main Page
  • Related Pages
  • Data Structures
  • Files
  • File List
  • Globals

sleep.c

Go to the documentation of this file.
00001 #include <grass/config.h>
00002 #ifndef __MINGW32__
00003 #include <unistd.h>
00004 #endif
00005 #ifdef __MINGW32__
00006 #include <windows.h>
00007 #endif
00008 #include <grass/gis.h>
00009 
00010 /* Sleep */
00011 void G_sleep(unsigned int seconds)
00012 {
00013 #ifdef __MINGW32__
00014     /* note: Sleep() cannot be interrupted */
00015     Sleep((seconds) * 1000);
00016 #else
00017     sleep(seconds);
00018 #endif
00019 }

Generated on Thu Dec 9 2010 20:46:05 for GRASS Programmer's Manual by  doxygen 1.7.2