Jump to content

How to get live elapsed time in my state machine


Recommended Posts

Here is a simple example of a parallel timer. This was whipped up pretty quickly and I was lazy and didn't create a typedef for the ENUM for the timer events. But this gives you a simple example of how you can handle this in a parallel task. You could also incorporate this into your current state machine but it does create additional overhead. Separate tasks (parallel loop) are a nice way to handle this type of thing.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.