NEST  2.6.0,not_revisioned_source_dir@0
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 /*
24  * first version
25  * date: april 2008
26  * author: Moritz Helias
27  *
28  */
29 
30 #ifndef NEST_TIME_CONVERTER_H
31 #define NEST_TIME_CONVERTER_H
32 
33 namespace nest
34 {
35 
46 {
47 
48  private:
51 
52  public:
53 
58  TimeConverter();
59 
60 
65  Time from_old_steps(long_t s_old) const;
66 
71  Time from_old_tics(tic_t t_old) const;
72 };
73 
74 } // of namespace nest
75 
76 #endif
Time from_old_steps(long_t 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:34
double_t OLD_TICS_PER_MS
Definition: nest_timeconverter.h:49
Definition: nest_time.h:130
long long tic_t
Type for Time tics.
Definition: nest.h:82
TimeConverter()
Constructor saves current TICS_PER_MS and TICS_PER_STEP in members OLD_TICS_PER_MS, OLD_TICS_PER_STEP.
Definition: nest_timeconverter.cpp:28
Class to convert times from one representation to another.
Definition: nest_timeconverter.h:45
double double_t
Double precision floating point numbers.
Definition: nest.h:93
double_t OLD_TICS_PER_STEP
Definition: nest_timeconverter.h:50
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:40
long long_t
Integer number with at least 32 bit.
Definition: nest.h:96