view sched/sched_after.m @ 38:9d24b616bb06

Added function algebra.
author samer
date Tue, 29 Jan 2013 15:59:01 +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