This is a static copy of a profile reportHome
timer.stop (2 calls, 0.000 sec)
Generated 15-Mar-2007 12:01:51 using real time.
M-function in file C:\Program Files\MATLAB71\toolbox\matlab\iofun\@timer\stop.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
19 | inval = false; | 2 | 0.000 s | 100.0% |  |
30 | if inval % at least one OBJ ob... | 2 | 0 s | 0% |  |
28 | end | 2 | 0 s | 0% |  |
24 | obj.jobject(lcv).stop; % stop ... | 2 | 0 s | 0% |  |
23 | if isJavaTimer(obj.jobject(lcv... | 2 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.000 s | 100% | |
Children (called functions)
M-Lint results
No M-Lint messages.Coverage results
[ Show coverage for parent directory ]
Total lines in file | 38 |
Non-code lines (comments, blank lines) | 20 |
Code lines (lines that can run) | 18 |
Code lines that did run | 7 |
Code lines that did not run | 11 |
Coverage (did run/can run) | 38.89 % |
Function listing
time calls line
1 function stop(obj)
2 % STOP Stop timer(s).
3 %
4 % STOP(OBJ) stops the timer, represented by the timer object,
5 % OBJ. If OBJ is an array of timer objects, STOP stops all of
6 % the timers. Use the TIMER function to create a timer object.
7 %
8 % STOP sets the Running property of the timer object, OBJ,
9 % to 'Off', halts further TimerFcn callbacks, and executes the
10 % StopFcn callback.
11 %
12 % See also TIMER, TIMER/START.
13
14 % RDD 11-20-2001
15 % Copyright 2001-2002 The MathWorks, Inc.
16 % $Revision: 1.2 $ $Date: 2002/02/20 20:17:22 $
17
2 18 len = length(obj);
< 0.01 2 19 inval = false;
20
21 % for each object...
2 22 for lcv = 1:len
2 23 if isJavaTimer(obj.jobject(lcv))
2 24 obj.jobject(lcv).stop; % stop the timer
25 else
26 inval = true; % flag that an invalid timer object was found.
27 end
2 28 end
29
2 30 if inval % at least one OBJ object is invalid
31 if (len==1) % if OBJ is singleton, invalid object is thrown as error
32 error('MATLAB:timer:invalid',timererror('MATLAB:timer:invalid'));
33 else % if OBJ is an array, above invalid object(len) is thrown as warning
34 state = warning('backtrace','off');
35 warning('MATLAB:timer:someinvalid',timererror('MATLAB:timer:someinvalid'));
36 warning(state);
37 end
38 end