1.1 --- a/src/simulator/wall-clock-synchronizer.cc Wed Aug 27 11:39:31 2008 -0700
1.2 +++ b/src/simulator/wall-clock-synchronizer.cc Thu Aug 28 15:06:49 2008 -0700
1.3 @@ -56,11 +56,17 @@
1.4 // requires a delay less than a jiffy. This is on the order of one millisecond
1.5 // (999848 ns) on the ns-regression machine.
1.6 //
1.7 +// If the underlying OS does not support posix clocks, we'll just assume a
1.8 +// one millisecond quantum and deal with this as best we can
1.9 +
1.10 +#ifdef CLOCK_REALTIME
1.11 struct timespec ts;
1.12 clock_getres (CLOCK_REALTIME, &ts);
1.13 m_jiffy = ts.tv_sec * NS_PER_SEC + ts.tv_nsec;
1.14 NS_LOG_INFO ("Jiffy is " << m_jiffy << " ns");
1.15 -
1.16 +#else
1.17 + m_jiffy = 1000000;
1.18 +#endif
1.19 #if 0
1.20 //
1.21 // DANGER DANGER WILL ROBINSON