view arrows/atime.m @ 2:7357e1dc2ad6

Simplified scheduler library with new schedule representation.
author samer
date Sat, 22 Dec 2012 16:17:51 +0000
parents 672052bd81f8
children
line wrap: on
line source
% atime - Arrow that counts time starting from zero
%
% atime :: arrow({},{[1]},pair(empty,real)).
% atime :: DT:real -> arrow({},{[1]},pair(empty,real)).
%
% If no parameters are supplied, time increases by 1 each iteration.
% If one parameter DT is supplied, time increases by DT each iteration.
function a=atime(dt)
	if nargin<1, dt=1; end
	a=const(dt) * integrate(0);
end