Auryn simulator  v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
RealTimeMonitor.h
Go to the documentation of this file.
1 /*
2 * Copyright 2014-2018 Friedemann Zenke
3 *
4 * This file is part of Auryn, a simulation package for plastic
5 * spiking neural networks.
6 *
7 * Auryn is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * Auryn is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with Auryn. If not, see <http://www.gnu.org/licenses/>.
19 *
20 * If you are using Auryn or parts of it for your work please cite:
21 * Zenke, F. and Gerstner, W., 2014. Limits to high-speed simulations
22 * of spiking neural networks using general-purpose computers.
23 * Front Neuroinform 8, 76. doi: 10.3389/fninf.2014.00076
24 */
25 
26 #ifndef REALTIMEMONITOR_H_
27 #define REALTIMEMONITOR_H_
28 
29 #include "auryn_definitions.h"
30 #include "AurynVector.h"
31 #include "Monitor.h"
32 #include "System.h"
33 #include "SpikingGroup.h"
34 #include <fstream>
35 #include <iomanip>
36 #include <boost/date_time/posix_time/posix_time.hpp>
37 
38 namespace auryn {
39 
45 class RealTimeMonitor : protected Monitor
46 {
47 private:
49  AurynTime t_start;
50 
52  AurynTime t_stop;
53 
55  boost::posix_time::ptime ptime_offset ;
56 
57 protected:
58 
59 public:
64  RealTimeMonitor(std::string filename, AurynDouble start = 1e-3, AurynDouble stop = 100);
65 
67  virtual ~RealTimeMonitor();
68 
70  void execute();
71 };
72 
73 }
74 
75 #endif /*REALTIMEMONITOR_H_*/
Abstract base class for all Monitor objects.
Definition: Monitor.h:47
virtual ~RealTimeMonitor()
Definition: RealTimeMonitor.cpp:51
Monitor class to record the system time in every timestep.
Definition: RealTimeMonitor.h:45
double AurynDouble
Higher precision floating point datatype.
Definition: auryn_definitions.h:158
RealTimeMonitor(std::string filename, AurynDouble start=1e-3, AurynDouble stop=100)
Definition: RealTimeMonitor.cpp:30
Definition: ABSConnection.h:38
void execute()
Definition: RealTimeMonitor.cpp:55
NeuronID AurynTime
Defines Auryns discrete time unit of the System clock. Change to AurynLong if 120h of simtime are not...
Definition: auryn_definitions.h:155
std::string string
Standard library string type which is imported into Auryn namespace.
Definition: auryn_definitions.h:156