annotate examples/private/timerclear.m @ 5:f44689e95ea4

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