comparison examples/private/timerclear.m @ 1:7750624e0c73 version0.5

(none)
author idamnjanovic
date Thu, 05 Nov 2009 16:36:01 +0000
parents
children
comparison
equal deleted inserted replaced
0:5181bee80bc1 1:7750624e0c73
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 = [];