I'm writing an interrupt handler in which I need to measure accurately the time between events. It looks like the micros() function is perfect, but when I put that in my code I get a compile error saying it is not declared. Just for testing I substituted millis() instead and it compiled ok. What gives? Is there a header I need to include? Is micros() not a public method?
More info: I started poking around in the files I had on disk, and I find that the micros() function is missing from wiring.h! I'm looking at some code online in Google Code that clearly shows it. Has it been recently added or removed? I have Arduino - 0012 installed on a Windows XP box.
Digging a little deeper, I think I have answered my own question. It looks like the micros() function was added in Arduino 0013, which was just released a few days ago. The online help already reflects the latest version. I will upgrade and try it out!
Sorry for spamming the board.