Community
cancel
Showing results for 
Search instead for 
Did you mean: 
TTimo
Beginner
1,816 Views

Is there a native timer equivalent to Arduino millis() on the Edison?

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.

0 Kudos
5 Replies
idata
Community Manager
61 Views

Hi doctim,

 

 

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....

 

 

Regards,

 

-Pablo
idata
Community Manager
61 Views

Hi doctim,

 

 

Do you have any updates on this case? Did you check our suggestions?

 

 

Regards,

 

-Pablo

 

TTimo
Beginner
61 Views

Thanks Pablo.

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.

idata
Community Manager
61 Views

Hi Doctim,

 

 

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.

 

 

Regards,

 

-Pablo
idata
Community Manager
61 Views

Hi Doctim,

 

 

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.

 

 

Thanks,

 

-Pablo
Reply