Mercurial > hg > octave-lyh
comparison scripts/time/etime.m @ 6046:34f96dd5441b
[project @ 2006-10-10 16:10:25 by jwe]
author | jwe |
---|---|
date | Tue, 10 Oct 2006 16:10:31 +0000 |
parents | 4c4d31ecb0e4 |
children | 93c65f2a5668 |
comparison
equal
deleted
inserted
replaced
6045:421d8a903df7 | 6046:34f96dd5441b |
---|---|
37 ## Author: jwe | 37 ## Author: jwe |
38 | 38 |
39 function secs = etime (t1, t0) | 39 function secs = etime (t1, t0) |
40 | 40 |
41 if (nargin != 2) | 41 if (nargin != 2) |
42 usage ("etime (t1, t0)"); | 42 print_usage (); |
43 endif | 43 endif |
44 | 44 |
45 [d1, s1] = datenum (t1); | 45 [d1, s1] = datenum (t1); |
46 [d0, s0] = datenum (t0); | 46 [d0, s0] = datenum (t0); |
47 | 47 |