Millis() arduino c++ in flowcode

For general Flowcode discussion that does not belong in the other sections.
Post Reply
solozerouno
Posts: 117
http://meble-kuchenne.info.pl
Joined: Tue Dec 08, 2020 4:36 am
Has thanked: 2 times
Been thanked: 2 times

Millis() arduino c++ in flowcode

Post by solozerouno »

How can the Arduino millis() function be used with Flowcode in C++? Is there a way or a function that does the same in Flowcode?
It is very important for me to know this.
Thank you,
Solozerouno

RGV250
Posts: 285
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 32 times

Re: Millis() arduino c++ in flowcode

Post by RGV250 »

Hi,
I do not know C++ but a quick google looks like you need to Include Chrono.
https://favtutor.com/blogs/sleep-cpp

Regards,
Bob

mnfisher
Valued Contributor
Posts: 1512
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 138 times
Been thanked: 725 times

Re: Millis() arduino c++ in flowcode

Post by mnfisher »

In Flowcode - include the Timer component - and then can get milliseconds (etc) from when it is started.

Martin

Post Reply