This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
blinktxt>blinkcallbackM-subfunction2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
19
inval = false;
20.000 s100.0%
30
if inval % at least one OBJ ob...
20 s0%
28
end
20 s0%
24
obj.jobject(lcv).stop; % stop ...
20 s0%
23
if isJavaTimer(obj.jobject(lcv...
20 s0%
Other lines & overhead  0 s0%
Totals  0.000 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
timer.lengthM-function20 s0%
@timer\private\isJavaTimerM-function20 s0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0.000 s100% 
M-Lint results
No M-Lint messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in file38
Non-code lines (comments, blank lines)20
Code lines (lines that can run)18
Code lines that did run7
Code lines that did not run11
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