comparison Problems/private/timerclear.m @ 61:42fcbcfca132

(none)
author idamnjanovic
date Tue, 15 Mar 2011 12:21:31 +0000
parents 207a6ae9a76f
children
comparison
equal deleted inserted replaced
60:ad36f80e2ccf 61:42fcbcfca132
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 = [];