Statistics
| Revision:

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

History | View | Annotate | Download (585 Bytes)

1 417 arnima
/*
2
 * $Id$
3
 *
4
 * Author: David Fournier
5 1112 johnoel
 * Copyright (c) 2008-2012 Regents of the University of California
6 417 arnima
 */
7
/**
8
 * \file
9
 * Description not yet available.
10
 */
11
#include <admodel.h>
12
#include <stdlib.h>
13
14
15 1567 johnoel
#if defined(__BORLANDC__) || defined(_MSC_VER) || defined(__MINGW32__)
16 417 arnima
#  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 1121 johnoel
#if !defined(linux) && !defined(__CYGWIN__) && !defined(__linux__)
28 417 arnima
  Sleep(t);
29 1112 johnoel
#else
30 417 arnima
#  if defined(__MINGW32__)
31
     Sleep(t);
32
#  else
33
     sleep(t);
34 1112 johnoel
#  endif
35
#endif
36 417 arnima
}