Re: [SLUG] Error in Time() command

2010-05-27 Thread dave b
On 24 May 2010 03:41, Glen Turner wrote: > On Sun, 2010-05-23 at 17:02 +0800, tenz...@iinet.net.au wrote: >> I'm seeking a preferably citeable reference to the amount of error >> in the returned result from a Time() command. I want to be >> able to quote the level of error in timing the execution

Re: [SLUG] Error in Time() command

2010-05-26 Thread Nick Andrew
On Thu, May 27, 2010 at 08:04:45AM +1000, Martin Visser wrote: > Risking totally going off-topic but analog thermistors are so old-school! > ;-) I bought a couple of LM335A (?) at the same time, but I figured I'd get it working as well as possible with the basic thermistor to start. > Check out t

Re: [SLUG] Error in Time() command

2010-05-26 Thread Martin Visser
Risking totally going off-topic but analog thermistors are so old-school! ;-) Check out the DS18B20. Same size as transistor (TO-220) but is digitally (one-wire serial) connected. No need for all that analog stuff and curve-fitting. These are uniquely address, thus polled if need be (dozens on the

Re: [SLUG] Error in Time() command

2010-05-26 Thread Nick Andrew
On Wed, May 26, 2010 at 05:52:59PM +1000, Martin Visser wrote: > Pretty much based on the knowledge that the MCU program counter is clocked > on a 16MHz crystal (according to http://en.wikipedia.org/wiki/Quartz_clock > they > are generally good for 6 parts per million for standard grade crystals,

Re: [SLUG] Error in Time() command

2010-05-26 Thread Martin Visser
Pretty much based on the knowledge that the MCU program counter is clocked on a 16MHz crystal (according to http://en.wikipedia.org/wiki/Quartz_clock they are generally good for 6 parts per million for standard grade crystals, whatever that is). You can use this in a number of ways. If you progra

Re: [SLUG] Error in Time() command

2010-05-25 Thread Ian Wienand
On Sun, May 23, 2010 at 2:02 AM, tenz...@iinet.net.au wrote: > I'm seeking a preferably citeable reference to the amount of error in the > returned result from a Time() command. I want to be > able to quote the level of error in timing the execution speed of my project. A reference that probably

Re: [SLUG] Error in Time() command

2010-05-25 Thread Nick Andrew
On Wed, May 26, 2010 at 01:53:27PM +1000, Martin Visser wrote: > (And if you don't have a scope or freq. meter) a suitably programmed Arduino > or similar microcontroller could do this fairly easily for you - probably > with better than 0.01% precision. How do we know the Arduino is so precise? :-

Re: [SLUG] Error in Time() command

2010-05-25 Thread Martin Visser
(And if you don't have a scope or freq. meter) a suitably programmed Arduino or similar microcontroller could do this fairly easily for you - probably with better than 0.01% precision. Regards, Martin martinvisse...@gmail.com On Wed, May 26, 2010 at 10:53 AM, Dion wrote: > Martin, > > That is

Re: [SLUG] Error in Time() command

2010-05-25 Thread Adrian Chadd
On Wed, May 26, 2010, Dion wrote: > Martin, > > That is a very good idea. Thank you! > > What makes this especially helpful and I'm anoyed I didn't think of it > myself, is that an empty app or loop with only the output pulse > included, can be used to approximate the overhead of the rest of th

Re: [SLUG] Error in Time() command

2010-05-25 Thread Dion
Martin, That is a very good idea. Thank you! What makes this especially helpful and I'm anoyed I didn't think of it myself, is that an empty app or loop with only the output pulse included, can be used to approximate the overhead of the rest of the system. Effectively giving a potentially mor

Re: [SLUG] Error in Time() command

2010-05-25 Thread Dion
Martin, That is a very good idea. Thank you! What makes this especially helpful and I'm anoyed I didn't think of it myself, is that an empty app or loop with only the output pulse included, can be used to approximate the overhead of the rest of the system. Effectively giving a potentially mor

Re: [SLUG] Error in Time() command

2010-05-25 Thread Martin Visser
Dion, As a soon-to-graduate EE you might consider using a tool such as oscilloscope or frequency counter to help more objectively measure timing. A simple thing to do would be to have your code section run in a repeating loop. At the end of the loop toggle a physical output - say the DTR line on a

Re: [SLUG] Error in Time() command

2010-05-23 Thread Dion Curchin
On 24/05/2010, at 8:47 AM, Glen Turner wrote: > On Mon, 2010-05-24 at 09:02 +1000, Peter Chubb wrote: > >> Actually it doesn't give the whole answer. > > Wow, thanks heaps Peter. Thank you all. Particularly Peter. That is truly an amazing depth of information to digest. > > tenzero: so there

Re: [SLUG] Error in Time() command

2010-05-23 Thread Peter Chubb
> "Dave" == Dave Kempe writes: >> 250, on my Debian/sid system running 2.6.32-5-openvz-amd64. FWIW. >> >> Daniel Dave> A little off topic, but, I noticed that the CONFIG_HZ variable Dave> on openvz systems is often 250. I found 1000 to be a better Dave> setting for responsiveness on a heavi

Re: [SLUG] Error in Time() command

2010-05-23 Thread Dave Kempe
> 250, on my Debian/sid system running 2.6.32-5-openvz-amd64. FWIW. > > Daniel A little off topic, but, I noticed that the CONFIG_HZ variable on openvz systems is often 250. I found 1000 to be a better setting for responsiveness on a heavily loaded openvz box. It felt like being able to schedul

Re: [SLUG] Error in Time() command

2010-05-23 Thread Daniel Pittman
Glen Turner writes: > On Mon, 2010-05-24 at 09:02 +1000, Peter Chubb wrote: > >> Actually it doesn't give the whole answer. > > Wow, thanks heaps Peter. > > tenzero: so there are 1000 (CONFIG_HZ) samples per second. 250, on my Debian/sid system running 2.6.32-5-openvz-amd64. FWIW. Danie

Re: [SLUG] Error in Time() command

2010-05-23 Thread Glen Turner
On Mon, 2010-05-24 at 09:02 +1000, Peter Chubb wrote: > Actually it doesn't give the whole answer. Wow, thanks heaps Peter. tenzero: so there are 1000 (CONFIG_HZ) samples per second. For each sample your program is one of: not scheduled, running in user, running in system, or has yielded the pro

Re: [SLUG] Error in Time() command

2010-05-23 Thread Peter Chubb
> "Glen" == Glen Turner writes: Glen> On Sun, 2010-05-23 at 17:02 +0800, tenz...@iinet.net.au wrote: >> I'm seeking a preferably citeable reference to the amount of error >> in the returned result from a Time() command. I want to be able to >> quote the level of error in timing the execution

Re: [SLUG] Error in Time() command

2010-05-23 Thread Glen Turner
On Sun, 2010-05-23 at 17:02 +0800, tenz...@iinet.net.au wrote: > I'm seeking a preferably citeable reference to the amount of error > in the returned result from a Time() command. I want to be > able to quote the level of error in timing the execution speed > of my project. "man time" gives the an

Re: [SLUG] Error in Time() command

2010-05-23 Thread Dion Curchin
On 23/05/2010, at 5:40 PM, Peter Chubb wrote: >> "tenzero" == tenzero writes: > > tenzero> Hi everyone, I'm seeking a preferably citeable reference to > tenzero> the amount of error in the returned result from a Time() > tenzero> command. I want to be able to quote the level of error in >

Re: [SLUG] Error in Time() command

2010-05-23 Thread Ken Foskey
On Sun, 2010-05-23 at 17:02 +0800, tenz...@iinet.net.au wrote: > Hi everyone, > > I'm seeking a preferably citeable reference to the amount of error in > the returned result from a Time() command. I want to be > able to quote the level of error in timing the execution speed of my project. > > Wh

Re: [SLUG] Error in Time() command

2010-05-23 Thread Peter Chubb
> "tenzero" == tenzero writes: tenzero> Hi everyone, I'm seeking a preferably citeable reference to tenzero> the amount of error in the returned result from a Time() tenzero> command. I want to be able to quote the level of error in tenzero> timing the execution speed of my project. Do yo

[SLUG] Error in Time() command

2010-05-23 Thread tenz...@iinet.net.au
Hi everyone, I'm seeking a preferably citeable reference to the amount of error in the returned result from a Time() command. I want to be able to quote the level of error in timing the execution speed of my project. While I have been using this command partly on Ubuntu for my project, I would