GRASS Programmer's Manual  6.4.1(2011)
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 }
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines