Re: Ancient projectiles (was: Muzzle Velocity (was: High resolution sleep (Linux))

2007-06-01 Thread Ian MacLure
Roy Smith <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED] 625.area1.spcsdns.net: > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Cameron Laird) > wrote: > >> Hmmm; now you've got me curious. What *were* the first >> composite projectiles? > > Fetchez la Vache! Non, non, non,

Re: Ancient projectiles (was: Muzzle Velocity (was: High resolution sleep (Linux))

2007-05-28 Thread John J. Lee
Roy Smith <[EMAIL PROTECTED]> writes: > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Cameron Laird) > wrote: > > > Hmmm; now you've got me curious. What *were* the first > > composite projectiles? > > Fetchez la Vache! :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Muzzle Velocity (was: High resolution sleep (Linux)

2007-05-27 Thread Hendrik van Rooyen
"Cameron Laird" <[EMAIL PROTECTED]> wrote: > . > . > Ha! It's interesting, especially for "computerists", to consider > how some technologies "plateau": steam car speeds, fresco paint- > ing, dry-stone walls, ... > > >From what I remember from my reading, the Stanley Steamer had a reputation

Re: Ancient projectiles (was: Muzzle Velocity (was: High resolution sleep(Linux))

2007-05-27 Thread Hendrik van Rooyen
"Cameron Laird" <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > . > . > . > >> Did you know that the first military smokeless powder > >> round was for the French Lebel? - It threw a bronze > >> ball, and could punch through a singl

Re: Ancient projectiles (was: Muzzle Velocity (was: High resolution sleep (Linux))

2007-05-26 Thread Roy Smith
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Cameron Laird) wrote: > Hmmm; now you've got me curious. What *were* the first > composite projectiles? Fetchez la Vache! -- http://mail.python.org/mailman/listinfo/python-list

Re: Muzzle Velocity (was: High resolution sleep (Linux)

2007-05-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Hendrik van Rooyen <[EMAIL PROTECTED]> wrote: . . . >2) That the old NATO round (.308 Winchester) travels at >around 2500 fps. - and this was some forty years ago, >when I did my stint of milit

Re: Muzzle Velocity (was: High resolution sleep (Linux)

2007-05-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >On Sun, 6 May 2007 10:15:26 +0200, "Hendrik van Rooyen" ><[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > >> A rifle bullet can travel at around 5000 feet per second. > > You've got some fast ri

Ancient projectiles (was: Muzzle Velocity (was: High resolution sleep (Linux))

2007-05-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: . . . >> Did you know that the first military smokeless powder >> round was for the French Lebel? - It threw a bronze >> ball, and could punch throu

Re: High resolution sleep (Linux)

2007-05-11 Thread Nick Craig-Wood
Bart <[EMAIL PROTECTED]> wrote: > What about C module with usleep,nanosleep? Unlikely to help! It is an linux OS limit that the minimum sleep time is 1/HZ. -- Nick Craig-Wood <[EMAIL PROTECTED]> -- http://www.craig-wood.com/nick -- http://mail.python.org/mailman/listinfo/python-list

Re: High resolution sleep (Linux)

2007-05-11 Thread Laurent Pointal
John a écrit : > Anyways, what I need is high resolution sleep, not high resolution > timing. Installing a real time OS seems like overkill. IDEA Maybe try creating threading.Event and waiting for it with a timeout. -- http://mail.python.org/mailman/listinfo/python-list

Re: Re: High resolution sleep (Linux)

2007-05-10 Thread Bart.
> On 9 Maj, 03:23, John Nagle <[EMAIL PROTECTED]> wrote: > > Hendrik van Rooyen wrote: > > > "Tim Roberts" <[EMAIL PROTECTED]> wrote" > > > It is also possible to keep the timer list sorted by "expiry date", > > > and to reprogram the timer to interrupt at the next expiry time > > > to give arbitr

Re: High resolution sleep (Linux)

2007-05-10 Thread John
On 9 Maj, 03:23, John Nagle <[EMAIL PROTECTED]> wrote: > Hendrik van Rooyen wrote: > > "Tim Roberts" <[EMAIL PROTECTED]> wrote" > > It is also possible to keep the timer list sorted by "expiry date", > > and to reprogram the timer to interrupt at the next expiry time > > to give arbitrary resoluti

Re: High resolution sleep (Linux)

2007-05-08 Thread John Nagle
Hendrik van Rooyen wrote: > "Tim Roberts" <[EMAIL PROTECTED]> wrote" > It is also possible to keep the timer list sorted by "expiry date", > and to reprogram the timer to interrupt at the next expiry time > to give arbitrary resolution, instead of implementing a regular 'tick'. Yes, and tha

Re: Muzzle Velocity (was: High resolution sleep (Linux)

2007-05-08 Thread [EMAIL PROTECTED]
On May 8, 12:59 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Tue, 8 May 2007 08:24:01 +0200, "Hendrik van Rooyen" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > > > So being an idle bugger, I just naturally assumed that the > > speed would have doubled in the inte

Re: Muzzle Velocity (was: High resolution sleep (Linux)

2007-05-08 Thread Steven D'Aprano
On Tue, 08 May 2007 17:59:13 +, Dennis Lee Bieber wrote: >> Did you know that the first military smokeless powder >> round was for the French Lebel? - It threw a bronze >> ball, and could punch through a single brick wall. >> > Well, extreme high speed wouldn't help for that -- just get

Re: Muzzle Velocity (was: High resolution sleep (Linux)

2007-05-08 Thread Hendrik van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED],..m.com> wrote: > On Sun, 6 May 2007 10:15:26 +0200, "Hendrik van Rooyen" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > > A rifle bullet can travel at around 5000 feet per second. > > You've got some fast rifles over there... LO

Re: High resolution sleep (Linux)

2007-05-07 Thread Hendrik van Rooyen
"Tim Roberts" <[EMAIL PROTECTED]> wrote" > Consider what you're asking here. The operating system can only age the > timer list and re-evaluate process ready states when a process goes into > kernel mode, either by releasing the CPU or hitting the end of its time > slice. In order to know that

Re: High resolution sleep (Linux)

2007-05-05 Thread Tim Roberts
John <[EMAIL PROTECTED]> wrote: > >The table below shows the execution time for this code snippet as >measured by the unix command `time': > >for i in range(1000): > time.sleep(inter) > >inter execution time ideal >0 0.02 s0 s >1e-44.

Re: High resolution sleep (Linux)

2007-05-05 Thread Nick Craig-Wood
John <[EMAIL PROTECTED]> wrote: > > The table below shows the execution time for this code snippet as > measured by the unix command `time': > > for i in range(1000): > time.sleep(inter) > > inter execution time ideal > 0 0.02 s0 s > 1e-4

High resolution sleep (Linux)

2007-05-04 Thread John
The table below shows the execution time for this code snippet as measured by the unix command `time': for i in range(1000): time.sleep(inter) inter execution time ideal 0 0.02 s0 s 1e-44.29 s0.1 s 1e-3