NEST main@caf0ae8
 
Loading...
Searching...
No Matches
cycle_time_log.h
Go to the documentation of this file.
1/*
2 * cycle_time_log.h
3 *
4 * This file is part of NEST.
5 *
6 * Copyright (C) 2004 The NEST Initiative
7 *
8 * NEST is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * NEST is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with NEST. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#ifndef CYCLE_TIME_LOG_H
24#define CYCLE_TIME_LOG_H
25
26// C++ includes:
27#include <vector>
28
29// Includes from libnestutil:
30#include "dictionary.h"
31
32namespace nest
33{
34
39{
40public:
42 void clear();
43 void add_entry( double cycle_update_time, double communicate_time, long local_spike_counter );
44 void to_dict( Dictionary& ) const;
45
46private:
47 std::vector< double > cycle_update_time_;
48 std::vector< double > communicate_time_; // Time of communicate in current cycle
49 std::vector< size_t > local_spike_counter_; // Local spike count in current cycle
50};
51
52}
53
54#endif /* cycle_time_log_h */
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Collect cycle duration and spike-count information for individual update cycles.
Definition cycle_time_log.h:39
CycleTimeLog()
Definition cycle_time_log.cpp:32
void add_entry(double cycle_update_time, double communicate_time, long local_spike_counter)
Definition cycle_time_log.cpp:48
std::vector< double > cycle_update_time_
Time of one update cycle.
Definition cycle_time_log.h:47
std::vector< size_t > local_spike_counter_
Definition cycle_time_log.h:49
void to_dict(Dictionary &) const
Definition cycle_time_log.cpp:56
std::vector< double > communicate_time_
Definition cycle_time_log.h:48
void clear()
Definition cycle_time_log.cpp:40
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33