0.4.1
Loading...
Searching...
No Matches
NAV::util::time Namespace Reference

Enumerations

enum class  Mode : uint8_t {
  REAL_TIME ,
  POST_PROCESSING
}
 Different Modes the Time Base class can work in. More...
 

Functions

void ClearCurrentTime ()
 Clears the current time object.
 
InsTime GetCurrentInsTime ()
 Get the current time.
 
Mode GetMode ()
 Get the time mode.
 
void SetCurrentTime (const InsTime &insTime)
 Set the current time object.
 
void SetCurrentTimeToComputerTime ()
 Set the current time object to the computer time.
 
void SetMode (Mode mode)
 Set the time mode.
 

Enumeration Type Documentation

◆ Mode

enum class NAV::util::time::Mode : uint8_t
strong

Different Modes the Time Base class can work in.

Enumerator
REAL_TIME 

Computer clock will be added to last time update.

POST_PROCESSING 

Time will be set by FlowExecutor only.

Definition at line 21 of file TimeBase.hpp.

Function Documentation

◆ ClearCurrentTime()

void NAV::util::time::ClearCurrentTime ( )

Clears the current time object.

Definition at line 80 of file TimeBase.cpp.

◆ GetCurrentInsTime()

NAV::InsTime NAV::util::time::GetCurrentInsTime ( )

Get the current time.

Returns
Pointer to the current time or nullptr if it is not known yet.

Definition at line 38 of file TimeBase.cpp.

◆ GetMode()

NAV::util::time::Mode NAV::util::time::GetMode ( )

Get the time mode.

Definition at line 28 of file TimeBase.cpp.

◆ SetCurrentTime()

void NAV::util::time::SetCurrentTime ( const InsTime & insTime)

Set the current time object.

Parameters
[in]insTimeThe new current time

Definition at line 49 of file TimeBase.cpp.

◆ SetCurrentTimeToComputerTime()

void NAV::util::time::SetCurrentTimeToComputerTime ( )

Set the current time object to the computer time.

Definition at line 70 of file TimeBase.cpp.

◆ SetMode()

void NAV::util::time::SetMode ( Mode mode)

Set the time mode.

Parameters
[in]modeReal time or postprocessing

Definition at line 33 of file TimeBase.cpp.