ADMB Documentation  11.1x.2730
 All Classes Files Functions Variables Typedefs Friends Defines
adsleep.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: adsleep.cpp 2491 2014-10-22 08:43:24Z 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 #if defined(_WIN32)
00015   #include <windows.h>
00016 #endif
00017 
00018 #ifndef _MSC_VER
00019   #include <unistd.h>
00020 #endif
00021 
00026 void ADSleep(unsigned int t)
00027 {
00028 #if defined(_WIN32)
00029   Sleep(t);
00030 #else
00031   sleep(t);
00032 #endif
00033 }