10#include <units/time.h>
63 units::time::second_t time;
139 systemTimestamp = newSystemTimestamp;
140 canivoreTimestamp = newCanivoreTimestamp;
149 if (canivoreTimestamp.
IsValid())
return canivoreTimestamp;
151 return systemTimestamp;
Cross the Road Electronics End User License Agreement This Software License or “Customer” and Cross The Road Electronics a Michigan based company with its principal place of business located at MI Terms Agreement means this End User License Agreement that forms the entire agreement between You and the Company regarding the use of the Software Leone USA Content refers to content such as or other information that can be linked to or otherwise made available by regardless of the form of that content Device means a hardware product or sold by Company Software means a collection of software supplied by Company that interacts with Devices and or simulates the behavior of and or is stored with Devices This includes and is not limited to Device source
Definition: CTRE_LICENSE.txt:23
A collection of timestamps for a received signal.
Definition: Timestamp.hpp:131
const Timestamp & GetSystemTimestamp() const
Get the timestamp as reported by the system.
Definition: Timestamp.hpp:158
void Update(const Timestamp &newSystemTimestamp, const Timestamp &newCanivoreTimestamp, const Timestamp &newDeviceTimestamp)
Definition: Timestamp.hpp:137
const Timestamp & GetBestTimestamp() const
Get the best timestamp available.
Definition: Timestamp.hpp:147
const Timestamp & GetCANivoreTimestamp() const
Get the timestamp as reported by the CANivore.
Definition: Timestamp.hpp:164
Information about the timestamp of a signal.
Definition: Timestamp.hpp:20
Timestamp(units::time::second_t time, TimestampSource source)
Construct a new Timestamp for the given source.
Definition: Timestamp.hpp:74
Timestamp()
Construct a new invalid Timestamp.
Definition: Timestamp.hpp:83
TimestampSource GetSource() const
Get the source of this timestamp.
Definition: Timestamp.hpp:104
units::time::second_t GetLatency() const
Get the latency of this timestamp compared to now.
Definition: Timestamp.hpp:113
units::time::second_t GetTime() const
Get the time in seconds as reported from this timestamp.
Definition: Timestamp.hpp:95
bool IsValid() const
Returns if this Timestamp is valid or not.
Definition: Timestamp.hpp:122
TimestampSource
Source of the timestamp.
Definition: Timestamp.hpp:25
CTREXPORT double GetCurrentTimeSeconds()
Get the current timestamp in seconds.
Definition: string_util.hpp:14