Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
simulation.h
Go to the documentation of this file.
1// Copyright 2012-2021:
2// GobySoft, LLC (2013-)
3// Massachusetts Institute of Technology (2007-2014)
4// Community contributors (see AUTHORS file)
5// File authors:
6// Toby Schneider <toby@gobysoft.org>
7//
8//
9// This file is part of the Goby Underwater Autonomy Project Libraries
10// ("The Goby Libraries").
11//
12// The Goby Libraries are free software: you can redistribute them and/or modify
13// them under the terms of the GNU Lesser General Public License as published by
14// the Free Software Foundation, either version 2.1 of the License, or
15// (at your option) any later version.
16//
17// The Goby Libraries are distributed in the hope that they will be useful,
18// but WITHOUT ANY WARRANTY; without even the implied warranty of
19// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20// GNU Lesser General Public License for more details.
21//
22// You should have received a copy of the GNU Lesser General Public License
23// along with Goby. If not, see <http://www.gnu.org/licenses/>.
24
25#ifndef GOBY_TIME_SIMULATION_H
26#define GOBY_TIME_SIMULATION_H
27
28#include <chrono>
29
30namespace goby
31{
32namespace time
33{
36{
38 static bool using_sim_time;
40 static int warp_factor;
42 static std::chrono::system_clock::time_point reference_time;
43};
44
45} // namespace time
46} // namespace goby
47
48#endif
unit< time_dimension, si::system > time
Definition time.hpp:22
The global namespace for the Goby project.
Parameters for enabling and configuring simulation time.
Definition simulation.h:36
static bool using_sim_time
Enables simulation time if true (if false, none of the remaining parameters are used)
Definition simulation.h:38
static std::chrono::system_clock::time_point reference_time
Reference time when calculating SystemClock::now(). If this is unset, the default is 1 January of the...
Definition simulation.h:42
static int warp_factor
Warp factor to speed up (or slow time) the time values returned by SteadyClock::now() and SystemClock...
Definition simulation.h:40