Last change
on this file since 61 was
53,
checked in by rosiere, 17 years ago
|
- Banc de registre multi banc
- Banc de registre générique.
|
File size:
1.0 KB
|
Line | |
---|
1 | #ifdef STATISTICS |
---|
2 | |
---|
3 | #ifndef morpheo_behavioural_Statistics_test_if_save_cpp |
---|
4 | #define morpheo_behavioural_Statistics_test_if_save_cpp |
---|
5 | |
---|
6 | /* |
---|
7 | * $Id$ |
---|
8 | * |
---|
9 | * [ Description ] |
---|
10 | * |
---|
11 | */ |
---|
12 | |
---|
13 | #include "Behavioural/include/Statistics.h" |
---|
14 | |
---|
15 | namespace morpheo { |
---|
16 | namespace behavioural { |
---|
17 | |
---|
18 | #undef FUNCTION |
---|
19 | #define FUNCTION "Statistics::test_if_save" |
---|
20 | template <class Counters, class Parameters_Counters> |
---|
21 | void Statistics::test_if_save(Counters ** & counters, Parameters_Counters parameters) |
---|
22 | { |
---|
23 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
24 | |
---|
25 | _period_current ++; |
---|
26 | |
---|
27 | // Test if allors a new counters ... |
---|
28 | if ( ((_nb_statistics == 0) && (_period_current >= _parameters_statistics->_nb_cycle_before_begin)) || |
---|
29 | ((_nb_statistics > 0) && (_period_current >= _parameters_statistics->_period_save )) ) |
---|
30 | { |
---|
31 | save<Counters,Parameters_Counters>(counters,parameters); |
---|
32 | _period_current = 0; |
---|
33 | } |
---|
34 | |
---|
35 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
36 | }; |
---|
37 | |
---|
38 | }; // end namespace behavioural |
---|
39 | }; // end namespace morpheo |
---|
40 | |
---|
41 | #endif |
---|
42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.