Statistics
| Revision:

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

History | View | Annotate | Download (457 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 1593 johnoel
#if defined(_WIN32)
8
  #include <windows.h>
9
  #include <admodel.h>
10 417 arnima
#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