This is a static copy of a profile reportHome
etime (4 calls, 0.016 sec)
Generated 15-Mar-2007 12:01:51 using real time.
M-function in file C:\Program Files\MATLAB71\toolbox\matlab\timefun\etime.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Function Name | Function Type | Calls |
legacy | M-function | 4 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
25 | t = 86400*(datenummx(t1(:,1:3)... | 4 | 0.016 s | 100.0% |  |
26 | (t1(:,4:6) - t0(:,4:6))*[3600;... | 4 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.016 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
datenummx | MEX-function | 8 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0.016 s | 100.0% |  |
Totals | | | 0.016 s | 100% | |
M-Lint results
No M-Lint messages.Coverage results
[ Show coverage for parent directory ]
Total lines in file | 26 |
Non-code lines (comments, blank lines) | 25 |
Code lines (lines that can run) | 1 |
Code lines that did run | 2 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 200.00 % |
Function listing
time calls line
1 function t = etime(t1,t0)
2 %ETIME Elapsed time.
3 % ETIME(T1,T0) returns the time in seconds that has elapsed between
4 % vectors T1 and T0. The two vectors must be six elements long, in
5 % the format returned by CLOCK:
6 %
7 % T = [Year Month Day Hour Minute Second]
8 %
9 % Time differences over many orders of magnitude are computed accurately.
10 % The result can be thousands of seconds if T1 and T0 differ in their
11 % first five components, or small fractions of seconds if the first five
12 % components are equal.
13 %
14 % t0 = clock;
15 % operation
16 % etime(clock,t0)
17 %
18 % See also TIC, TOC, CLOCK, CPUTIME, DATENUM.
19
20 % Copyright 1984-2002 The MathWorks, Inc.
21 % $Revision: 5.9.4.1 $ $Date: 2002/09/30 12:01:19 $
22
23 % Compute time difference accurately to preserve fractions of seconds.
24
0.02 4 25 t = 86400*(datenummx(t1(:,1:3)) - datenummx(t0(:,1:3))) + ...
4 26 (t1(:,4:6) - t0(:,4:6))*[3600; 60; 1];