Wait for 0 seconds

ereming's Avatar

ereming

09 Jan, 2015 02:27 PM

Hi Chris,

Would there be anything wrong with having a wait action for 0 seconds in some cases? Would MWorks just not execute the command, or would it still go through the effort of setting up the timer? I can easily add an if statement, just curious about the implementation. If you're not sure don't bother digging up the answer.

Thanks,
Evan

  1. Support Staff 1 Posted by Christopher Sta... on 09 Jan, 2015 04:05 PM

    Christopher Stawarz's Avatar

    Hi Evan,

    Would there be anything wrong with having a wait action for 0 seconds in some cases? Would MWorks just not execute the command, or would it still go through the effort of setting up the timer?

    With a simple "wait", the command will execute but will complete immediately, with no actual waiting. With a "start timer" action, you'll get a warning on the server console saying "Scheduling a timer to fire at a time in the past", but no timer thread will be created, and a "timer expired" transition on the timer will execute immediately. In either case, the execution of your experiment won't be affected, as no actual waiting takes place.

    Cheers,
    Chris

  2. 2 Posted by ereming on 10 Jan, 2015 02:12 PM

    ereming's Avatar

    Got it, thanks!

  3. ereming closed this discussion on 10 Jan, 2015 02:12 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac