diff sched/timed_action.m @ 6:0ce3c2070089

Removed duplicate code and fixed doc in timed_action.
author samer
date Mon, 14 Jan 2013 14:33:37 +0000
parents 7357e1dc2ad6
children beb8a3f4a345
line wrap: on
line diff
--- a/sched/timed_action.m	Sat Jan 12 22:32:08 2013 +0000
+++ b/sched/timed_action.m	Mon Jan 14 14:33:37 2013 +0000
@@ -2,6 +2,10 @@
 %
 % timed_action :: 
 %    (A1, A2, ... => B1, B2, ...) ~'some action',
+%    options {
+%       print   :: bool/false     ~'if true, then print timing error on action';
+%       errorfn :: (time => real) ~'action to compute timing error from scheduled time'
+%    }
 % -> timed_action({A1,A2,...},{B1,B2,...}).
 function a0=timed_action(x,varargin)
 	opts=prefs('print',0,'errorfn',@(t)nows-t,varargin{:});