Vizard 7 » Command Index » Vizard modules » viztask » <viztask>.waitTime
7.6

<viztask>.waitTime

Wait for a specified amount of time

<viztask>.waitTime(  
seconds  
)  
seconds
Number of seconds to wait for

Remarks

This command will create a Condition object that will wait for the specified number of seconds to elapse.

The yielded command returns a viz.Data object with the following information about the condition:

Properties

elapsed

The actual time that elapsed. This will usually be slightly greater than the specified seconds.

Return Value

viztask.Condition object

Example

import viztask

def MyTask():

    while True:

        yield viztask.waitTime(1)

        print('1 second has passed')

viztask.schedule( MyTask() )