NEST main@caf0ae8
 
Loading...
Searching...
No Matches
nest_timeconverter.h
Go to the documentation of this file.
1/*
2 * nest_timeconverter.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 NEST_TIME_CONVERTER_H
24#define NEST_TIME_CONVERTER_H
25
26#include "nest_types.h"
27
28namespace nest
29{
30class Time;
42{
43
44private:
47
48public:
54
55
64 Time from_old_steps( long s_old ) const;
65
70 Time from_old_tics( tic_t t_old ) const;
71};
72
73} // of namespace nest
74
75#endif
Class to convert times from one representation to another.
Definition nest_timeconverter.h:42
double OLD_TICS_PER_MS
Definition nest_timeconverter.h:45
Time from_old_tics(tic_t t_old) const
Converts a given number of tics with respect to old representation into a time object in current repr...
Definition nest_timeconverter.cpp:49
double OLD_TICS_PER_STEP
Definition nest_timeconverter.h:46
TimeConverter()
Constructor saves current TICS_PER_MS and TICS_PER_STEP in members OLD_TICS_PER_MS,...
Definition nest_timeconverter.cpp:31
Time from_old_steps(long s_old) const
Converts a given number of steps with respect to old representation into a time object in current rep...
Definition nest_timeconverter.cpp:38
Definition nest_time.h:135
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
long long tic_t
Type for Time tics.
Definition nest_types.h:103