Line | |
---|
1 | #ifdef STATISTICS |
---|
2 | |
---|
3 | /* |
---|
4 | * $Id$ |
---|
5 | * |
---|
6 | * [ Description ] |
---|
7 | * |
---|
8 | */ |
---|
9 | |
---|
10 | #include "Behavioural/include/Statistics.h" |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | |
---|
15 | uint32_t Statistics::compute_cycle_begin (uint32_t num_statistics) |
---|
16 | { |
---|
17 | return _parameters_statistics._nb_cycle_before_begin + num_statistics*_parameters_statistics._period_save; |
---|
18 | }; |
---|
19 | |
---|
20 | uint32_t Statistics::compute_cycle_end (uint32_t num_statistics, uint32_t nb_cycle) |
---|
21 | { |
---|
22 | if (num_statistics == (_nb_statistics-1)) // Last ? |
---|
23 | return compute_cycle_begin(num_statistics ) + nb_cycle; |
---|
24 | else |
---|
25 | return compute_cycle_begin(num_statistics+1) - 1; |
---|
26 | }; |
---|
27 | |
---|
28 | }; // end namespace behavioural |
---|
29 | }; // end namespace morpheo |
---|
30 | |
---|
31 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.