Statistics
| Revision:

root / trunk / src / nh99 / adsleep.cpp @ 1121

History | View | Annotate | Download (587 Bytes)

1
/*
2
 * $Id: adsleep.cpp 1121 2013-07-19 21:25:35Z johnoel $
3
 *
4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California
6
 */
7
/**
8
 * \file
9
 * Description not yet available.
10
 */
11
#include <admodel.h>
12
#include <stdlib.h>
13

    
14

    
15
#if defined(__BORLANDC__) || defined(__MSVC32__) || defined(__MINGW32__)
16
#  if !defined(__linux__)
17
#   include <windows.h>
18
#  endif
19
#endif
20

    
21
/**
22
 * Description not yet available.
23
 * \param
24
 */
25
void ADSleep(int t)
26
{
27
#if !defined(linux) && !defined(__CYGWIN__) && !defined(__linux__)
28
  Sleep(t);
29
#else
30
#  if defined(__MINGW32__)
31
     Sleep(t);
32
#  else
33
     sleep(t);
34
#  endif
35
#endif
36
}