annotate sched/sched_after.m @ 61:eff6bddf82e3
tip
Finally implemented perceptual brightness thing.
author |
samer |
date |
Sun, 11 Oct 2015 10:20:42 +0100 |
parents |
f7fb679637ff |
children |
|
rev |
line source |
samer@10
|
1 % sched_rel- one shot, relative scheduler using Matlab timer
|
samer@10
|
2 %
|
samer@10
|
3 % sched_rel::
|
samer@10
|
4 % (void => A1,...,AN) ~'action with N return values',
|
samer@10
|
5 % nonneg ~'delay in seconds',
|
samer@10
|
6 % M:natural ~'number of output arguments to collect'
|
samer@10
|
7 % => (void => A1,...,AM).
|
samer@10
|
8 %
|
samer@10
|
9 % After use, timer is marked for deletion but you must call
|
samer@10
|
10 % timer_gc to actually delete it.
|
samer@10
|
11 function x=sched_rel(f,dt,varargin), x=sched_abs(f,nows+dt,varargin{:}); end
|
samer@10
|
12
|