GRASS Programmer's Manual
6.4.2(2012)
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
sleep.c
Go to the documentation of this file.
1
#include <grass/config.h>
2
#ifndef __MINGW32__
3
#include <unistd.h>
4
#endif
5
#ifdef __MINGW32__
6
#include <windows.h>
7
#endif
8
#include <grass/gis.h>
9
10
/* Sleep */
11
void
G_sleep
(
unsigned
int
seconds)
12
{
13
#ifdef __MINGW32__
14
/* note: Sleep() cannot be interrupted */
15
Sleep((seconds) * 1000);
16
#else
17
sleep(seconds);
18
#endif
19
}
lib
gis
sleep.c
Generated on Sun Mar 16 2014 05:07:48 for GRASS Programmer's Manual by
1.8.1.2