Mercurial > hg > ishara
view 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 |
line wrap: on
line source
% timer_wait - Wait for timer to stop running % % timer_wait :: timer => void. % timer_wait :: timer, nonneg ~'time quantum for waiting' => void. % % If no wait quantum is supplied, the default is 50ms. function timer_wait(T,dt) if nargin<2, dt=0.05; end while isvalid(T) && strcmp(T.Running,'on') pause(dt); end end