annotate sched/timer_wait.m @ 61:eff6bddf82e3 tip

Finally implemented perceptual brightness thing.
author samer
date Sun, 11 Oct 2015 10:20:42 +0100
parents 7357e1dc2ad6
children
rev   line source
samer@2 1 % timer_wait - Wait for timer to stop running
samer@0 2 %
samer@2 3 % timer_wait :: timer => void.
samer@2 4 % timer_wait :: timer, nonneg ~'time quantum for waiting' => void.
samer@0 5 %
samer@0 6 % If no wait quantum is supplied, the default is 50ms.
samer@0 7
samer@2 8 function timer_wait(T,dt)
samer@0 9
samer@0 10 if nargin<2, dt=0.05; end
samer@0 11 while isvalid(T) && strcmp(T.Running,'on')
samer@0 12 pause(dt);
samer@0 13 end
samer@0 14 end