ADMB Documentation  11.1x.2711
 All Classes Files Functions Variables Typedefs Friends Defines
model34.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: model34.cpp 1919 2014-04-22 22:02:01Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00007 #if defined(_WIN32)
00008   #include <windows.h>
00009   #include <admodel.h>
00010 #endif
00011 
00012 #include <admodel.h>
00013 
00014 #if defined (AD_DEMO)
00015 #include <time.h>
00016 double waste_time();
00017 
00018 void adwait(double sec)
00019 {
00020   time_t tt;
00021   time_t ttold;
00022   time(&ttold);
00023   do
00024   {
00025     time(&tt);
00026     if ( (tt-ttold) > sec ) break;
00027   }
00028   while(1);
00029 }
00030 #else
00031 void adwait(double sec){;}
00032 #endif