Mercurial > hg > smallbox
annotate util/ksvd utils/timerclear.m @ 220:0d30f9074dd9
Merge
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 11 Apr 2012 15:56:39 +0100 |
parents | c3eca463202d |
children |
rev | line source |
---|---|
idamnjanovic@70 | 1 function timerclear() |
idamnjanovic@70 | 2 %TIMERCLEAR Clear all timers. |
idamnjanovic@70 | 3 % TIMERCLEAR clears all currenly registered timers, invalidating all |
idamnjanovic@70 | 4 % timer ids. |
idamnjanovic@70 | 5 % |
idamnjanovic@70 | 6 % Note: since registered timers do not consume CPU power except for when |
idamnjanovic@70 | 7 % the TIMER<*> functions are called, this function is only useful in |
idamnjanovic@70 | 8 % situations where a large number of timers have been initialized, and |
idamnjanovic@70 | 9 % there is a need to reclaim memory. |
idamnjanovic@70 | 10 % |
idamnjanovic@70 | 11 % See also TIMERINIT, TIMERETA. |
idamnjanovic@70 | 12 |
idamnjanovic@70 | 13 |
idamnjanovic@70 | 14 % Ron Rubinstein |
idamnjanovic@70 | 15 % Computer Science Department |
idamnjanovic@70 | 16 % Technion, Haifa 32000 Israel |
idamnjanovic@70 | 17 % ronrubin@cs |
idamnjanovic@70 | 18 % |
idamnjanovic@70 | 19 % June 2008 |
idamnjanovic@70 | 20 |
idamnjanovic@70 | 21 |
idamnjanovic@70 | 22 global utiltbx_timer_start_times % start times |
idamnjanovic@70 | 23 global utiltbx_time_lastdisp % last display times |
idamnjanovic@70 | 24 global utiltbx_timer_iternums % iteration numbers |
idamnjanovic@70 | 25 global utiltbx_timer_lastiter % last queried iteration numbers |
idamnjanovic@70 | 26 global utiltbx_timer_name % timer names |
idamnjanovic@70 | 27 global utiltbx_timer_callfun % timer calling functions |
idamnjanovic@70 | 28 |
idamnjanovic@70 | 29 |
idamnjanovic@70 | 30 % clear all timers % |
idamnjanovic@70 | 31 |
idamnjanovic@70 | 32 utiltbx_timer_start_times = []; |
idamnjanovic@70 | 33 utiltbx_time_lastdisp = []; |
idamnjanovic@70 | 34 utiltbx_timer_iternums = []; |
idamnjanovic@70 | 35 utiltbx_timer_lastiter = []; |
idamnjanovic@70 | 36 utiltbx_timer_name = []; |
idamnjanovic@70 | 37 utiltbx_timer_callfun = []; |