I am trying to migrate some existing code from an Arduino Mega over to the Edison. Due to some hardware shields, I prefer to continue to develop within the Arduino IDE. However, I cannot seem to get the elapsedMillis() library working. I suspect this may be due to the millis() function not being supported, but am unclear as to what the issue truly is. Does anyone know of a function that can be called from within the Arduino environment that will report time elapsed since restart, like the millis() function does? Thanks.
Thank you for contacting us, we'll be more than happy to help you.
I remember seeing a similar thread some time ago, here you can find the link /thread/47740 https://communities.intel.com/thread/47740. The customer was trying to use millis() to log elapse time and AlexT was able to provide an answer, check at his post. From external sources, you can check these other ideas, http://stackoverflow.com/questions/31622647/how-can-i-get-the-number-of-milliseconds-elapsed-since-t... http://stackoverflow.com/questions/31622647/how-can-i-get-the-number-of-milliseconds-elapsed-since-t....
millis() actually works fine, but I still cannot get the elapsedMillis() library to work. Something in that library causes the Edison to freeze. We have a workaround though, so I am just moving away from that timer library. Thanks for the help.
I can pass your feedback about this timer to the development team (if you want me to, obviously), maybe they will be able to come up with something. Still, I'm glad to know you got it working already.
We just want to let you know that your feedback about the elapsedMillis() library has been passed to the development team. Hopefully we will see it available in a future image.