Interesting ! So maybe you should put these details in the lib header, a user must know, particularly with this kind of lib, when he can use it safely, and when he can't.
Is there a lot of overhead while starting/stopping ? Do you think it could be used to "decypher" some pwm input and figure out high and low levels duration for instance ? (this would require quite a lot of call to _start() and _stop()) Let me know if you have suggestions. Here are some things I may add: 1. allow user to choose what timer to use (maybe only 8 bit timers) 2. allow user to choose increments (currently at 1us increments) I second these :) Cheers, Seb 2010/12/23 mattschinkel <[email protected]> > I figured this is a much needed library. This will give a nice way to > benchmark your code :) > > By my calculations (in the lib) it is accurate to near 1us. low clock > speeds like 2mhz will be a bit less accurate since a instruction cycle > is > 1us. My lib works by actual time of an instruction cycle. > > Of course timing things in the real world may require a good external > oscillator. > > The delay library's 1ms delay is actually 0.963ms. If my lib is > correct :) > > Let me know if you have suggestions. Here are some things I may add: > 1. allow user to choose what timer to use (maybe only 8 bit timers) > 2. allow user to choose increments (currently at 1us increments) > > Matt. > > -- > You received this message because you are subscribed to the Google Groups > "jallib" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<jallib%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/jallib?hl=en. > > -- Sébastien Lelong http://www.sirloon.net http://sirbot.org -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
