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