ADMB Documentation  11.1.1890
 All Classes Files Functions Variables Typedefs Friends Defines
adsleep.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: adsleep.cpp 1567 2014-01-27 20:43:48Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00011 #include <admodel.h>
00012 #include <stdlib.h>
00013 
00014 
00015 #if defined(__BORLANDC__) || defined(_MSC_VER) || defined(__MINGW32__)
00016 #  if !defined(__linux__)
00017 #   include <windows.h>
00018 #  endif
00019 #endif
00020 
00025 void ADSleep(int t)
00026 {
00027 #if !defined(linux) && !defined(__CYGWIN__) && !defined(__linux__)
00028   Sleep(t);
00029 #else
00030 #  if defined(__MINGW32__)
00031      Sleep(t);
00032 #  else
00033      sleep(t);
00034 #  endif
00035 #endif
00036 }