samer@10: % sched_rel- one shot, relative scheduler using Matlab timer samer@10: % samer@10: % sched_rel:: samer@10: % (void => A1,...,AN) ~'action with N return values', samer@10: % nonneg ~'delay in seconds', samer@10: % M:natural ~'number of output arguments to collect' samer@10: % => (void => A1,...,AM). samer@10: % samer@10: % After use, timer is marked for deletion but you must call samer@10: % timer_gc to actually delete it. samer@10: function x=sched_rel(f,dt,varargin), x=sched_abs(f,nows+dt,varargin{:}); end samer@10: