Skip to main content

AVxcelerate Simulation Framework 2025 R1

timestamp

Last update: 16.07.2025
1 
5 
6 #pragma once
7 
8 #include <cstdint>
9 #include <string>
10 
15 namespace simulation_framework
16 {
17 namespace core
18 {
19 namespace time
20 {
21 
22 struct 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 
33 inline 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

Connect with Ansys