![]() |
#3
|
|||
|
|||
i didn't have yield statements. i started out using vizact.ontimer within the while-loop to implement an elapsed time function :
startTime = viz.tick() def elapsed(): elapsedTime = viz.tick()-startTime vizact.ontimer(0, elapsed) i wanted to use 'elapsed' to monitor each trials time and set isDone to True when the time hit 20 seconds. the partner i am working with pointed out that the preceeding script wouldn't create a timer at the start of the while loop like i had intended but would instead create timerS nonstop once the while loop began. as a result, i think i created a massive memory leak... how would i go about implementing a yield statement to get an elapsed time function? |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Update scripts while running? | pcatalano | Vizard | 2 | 02-10-2011 12:29 PM |
How to Hide Console when running from shell? | Renato Lima | Vizard | 3 | 11-18-2010 03:03 PM |
Problem running Vizard | Jerry | Vizard | 4 | 03-06-2008 12:11 PM |
Problems running R3 and R2.5 on the same computer | cade_mccall | Vizard | 5 | 09-05-2006 11:26 AM |
running scripts without the IDE showing | hotspur1 | Vizard | 7 | 10-30-2003 10:36 AM |