view 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
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