Mercurial > hg > ishara
diff sched/timer_wait.m @ 2:7357e1dc2ad6
Simplified scheduler library with new schedule representation.
author | samer |
---|---|
date | Sat, 22 Dec 2012 16:17:51 +0000 |
parents | 672052bd81f8 |
children |
line wrap: on
line diff
--- a/sched/timer_wait.m Wed Dec 19 22:46:05 2012 +0000 +++ b/sched/timer_wait.m Sat Dec 22 16:17:51 2012 +0000 @@ -1,11 +1,11 @@ -% waitfortimer - Wait for timer to stop running +% timer_wait - Wait for timer to stop running % -% waitfortimer :: timer -> action unit. -% waitfortimer :: timer, nonneg ~'time quantum for waiting' -> action unit. +% timer_wait :: timer => void. +% timer_wait :: timer, nonneg ~'time quantum for waiting' => void. % % If no wait quantum is supplied, the default is 50ms. -function waittimer(T,dt) +function timer_wait(T,dt) if nargin<2, dt=0.05; end while isvalid(T) && strcmp(T.Running,'on')