/usr/share/freemat/toolbox/time/etime.m is in freemat-data 4.0-5build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | % ETIME ETIME Elapsed Time Function
%
% Usage
%
% The etime calculates the elapsed time between two clock vectors
% x1 and x2. The syntax for its use is
%
% y = etime(x1,x2)
%
% where x1 and x2 are in the clock output format
%
% x = [year month day hour minute seconds]
%
% Copyright (c) 2002-2007 Samit Basu
% Licensed under the GPL
function y = etime(x1,x2)
if (~exist('x1') | ~exist('x2'))
error 'etime expects two arguments'
end
try
y1 = clocktotime(x1);
y2 = clocktotime(x2);
catch
error 'invalid input vectors to etime'
end
y = y1 - y2;
|