Statistics
| Revision:

root / trunk / src / nh99 / model34.cpp @ 1593

History | View | Annotate | Download (457 Bytes)

1
/*
2
 * $Id: model34.cpp 1593 2014-01-31 21:25:09Z johnoel $
3
 *
4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California
6
 */
7
#if defined(_WIN32)
8
  #include <windows.h>
9
  #include <admodel.h>
10
#endif
11

    
12
#include <admodel.h>
13

    
14
#if defined (AD_DEMO)
15
#include <time.h>
16
double waste_time();
17

    
18
void adwait(double sec)
19
{
20
  time_t tt;
21
  time_t ttold;
22
  time(&ttold);
23
  do
24
  {
25
    time(&tt);
26
    if ( (tt-ttold) > sec ) break;
27
  }
28
  while(1);
29
}
30
#else
31
void adwait(double sec){;}
32
#endif