0.2.0
Loading...
Searching...
No Matches
TimeBase.hpp
Go to the documentation of this file.
1// This file is part of INSTINCT, the INS Toolkit for Integrated
2// Navigation Concepts and Training by the Institute of Navigation of
3// the University of Stuttgart, Germany.
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
13
14#pragma once
15
17
18namespace NAV::util::time
19{
21enum class Mode
22{
23 REAL_TIME,
25};
26
29void SetMode(Mode mode);
30
33
37
40void SetCurrentTime(const InsTime& insTime);
41
44
47
48// TODO: Remove this all. Nodes have to give the time to each other over links. Each message needs a time, not globally
49
50} // namespace NAV::util::time
The class is responsible for all time-related tasks.
Mode GetMode()
Get the time mode.
void ClearCurrentTime()
Clears the current time object.
Mode
Different Modes the Time Base class can work in.
Definition TimeBase.hpp:22
@ POST_PROCESSING
Time will be set by FlowExecutor only.
@ REAL_TIME
Computer clock will be added to last time update.
InsTime GetCurrentInsTime()
Get the current time.
void SetCurrentTime(const InsTime &insTime)
Set the current time object.
void SetMode(Mode mode)
Set the time mode.
void SetCurrentTimeToComputerTime()
Set the current time object to the computer time.
The class is responsible for all time-related tasks.
Definition InsTime.hpp:667