comparison util/ksvd utils/timerclear.m @ 70:c3eca463202d

(none)
author idamnjanovic
date Wed, 16 Mar 2011 14:16:57 +0000
parents
children
comparison
equal deleted inserted replaced
69:5f1f436057ca 70:c3eca463202d
1 function timerclear()
2 %TIMERCLEAR Clear all timers.
3 % TIMERCLEAR clears all currenly registered timers, invalidating all
4 % timer ids.
5 %
6 % Note: since registered timers do not consume CPU power except for when
7 % the TIMER<*> functions are called, this function is only useful in
8 % situations where a large number of timers have been initialized, and
9 % there is a need to reclaim memory.
10 %
11 % See also TIMERINIT, TIMERETA.
12
13
14 % Ron Rubinstein
15 % Computer Science Department
16 % Technion, Haifa 32000 Israel
17 % ronrubin@cs
18 %
19 % June 2008
20
21
22 global utiltbx_timer_start_times % start times
23 global utiltbx_time_lastdisp % last display times
24 global utiltbx_timer_iternums % iteration numbers
25 global utiltbx_timer_lastiter % last queried iteration numbers
26 global utiltbx_timer_name % timer names
27 global utiltbx_timer_callfun % timer calling functions
28
29
30 % clear all timers %
31
32 utiltbx_timer_start_times = [];
33 utiltbx_time_lastdisp = [];
34 utiltbx_timer_iternums = [];
35 utiltbx_timer_lastiter = [];
36 utiltbx_timer_name = [];
37 utiltbx_timer_callfun = [];