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]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
