view sched/sched_after.m @ 42:ae596261e75f

Various fixes and development to audio handling
author samer
date Tue, 02 Dec 2014 14:51:13 +0000
parents f7fb679637ff
children
line wrap: on
line source
% sched_rel- one shot, relative scheduler using Matlab timer
%
% sched_rel::
%    (void => A1,...,AN) ~'action with N return values',
%    nonneg    ~'delay in seconds',
%    M:natural ~'number of output arguments to collect'
% => (void => A1,...,AM).
%
% After use, timer is marked for deletion but you must call
% timer_gc to actually delete it.
function x=sched_rel(f,dt,varargin), x=sched_abs(f,nows+dt,varargin{:}); end