Skip to main content

AVxcelerate Simulation Framework 2025 R2

timestamp

Last update: 16.07.2025
1
5
6#pragma once
7
8#include <cstdint>
9#include <string>
10
16{
17namespace core
18{
19namespace time
20{
21
22struct Timestamp
23{
24 uint32_t seconds;
25 uint32_t nanoseconds;
26 std::string DebugString() const
27 {
28 return "Simulation timestamp: " + std::to_string(seconds) + " second and " + std::to_string(nanoseconds) +
29 " nanos ";
30 }
31};
32
33inline bool operator==(const Timestamp& lhs, const Timestamp& rhs)
34{
35 return (lhs.seconds == rhs.seconds) && (lhs.nanoseconds == rhs.nanoseconds);
36}
37
38} // namespace time
39} // namespace core
40} // namespace simulation_framework
The namespace for all core functionalities under namespace simulation_framework.
The top namespace for simulation framework.
The namespace for simulation time related implementation under namespace simulation_framework::core.

Connect with Ansys