On 9/29/08 4:26 PM, Eric Norum wrote:
> Looks like Darwin has the same issues. Intervals down to 100
> microseconds seem to be useable.
>
> norume@gnarly 283> ./testTimer
> epicsThreadSleepQuantum=0.010000
> Elapsed time to sleep for 0.000100 seconds 1000 times=0.122238
> Elapsed time to sleep for 0.000200 seconds 1000 times=0.220128
> Elapsed time to sleep for 0.000500 seconds 1000 times=0.520916
> Elapsed time to sleep for 0.001000 seconds 1000 times=1.021224
> Elapsed time to sleep for 0.002000 seconds 1000 times=2.021927
> Elapsed time to sleep for 0.005000 seconds 1000 times=5.024166
> Elapsed time to sleep for 0.010000 seconds 1000 times=10.026175
> Elapsed time to sleep for 0.020000 seconds 1000 times=20.026937
I get similar results to Eric on x86 Darwin (Mac OS X 10.5.5) with both
EPICS 3.14.8.2:
epicsThreadSleepQuantum=0.010000
Elapsed time to sleep for 0.000100 seconds 1000 times=0.157522
Elapsed time to sleep for 0.000200 seconds 1000 times=0.295633
Elapsed time to sleep for 0.000500 seconds 1000 times=0.627397
Elapsed time to sleep for 0.001000 seconds 1000 times=1.137103
Elapsed time to sleep for 0.002000 seconds 1000 times=2.137704
Elapsed time to sleep for 0.005000 seconds 1000 times=5.139864
Elapsed time to sleep for 0.010000 seconds 1000 times=10.143002
Elapsed time to sleep for 0.020000 seconds 1000 times=20.142160
and EPICS 3.14.9:
epicsThreadSleepQuantum=0.010000
Elapsed time to sleep for 0.000100 seconds 1000 times=0.159914
Elapsed time to sleep for 0.000200 seconds 1000 times=0.327441
Elapsed time to sleep for 0.000500 seconds 1000 times=0.620934
Elapsed time to sleep for 0.001000 seconds 1000 times=1.130992
Elapsed time to sleep for 0.002000 seconds 1000 times=2.119084
Elapsed time to sleep for 0.005000 seconds 1000 times=5.135174
Elapsed time to sleep for 0.010000 seconds 1000 times=10.133973
Elapsed time to sleep for 0.020000 seconds 1000 times=20.143957
-lewis
- References:
- epicsThreadSleep() and epicsThreadSleepQuantum() Mark Rivers
- Re: epicsThreadSleep() and epicsThreadSleepQuantum() Eric Norum
- Navigate by Date:
- Prev:
Re: epicsThreadSleep() and epicsThreadSleepQuantum() Eric Norum
- Next:
Base R3.14.10-RC1 Released Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
<2008>
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: epicsThreadSleep() and epicsThreadSleepQuantum() Eric Norum
- Next:
Re: epicsThreadSleep() and epicsThreadSleepQuantum() David Dudley
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
<2008>
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|