Skip to main content

AVxcelerate Simulation Framework 2025 R2 SP02

clock

Last update: 19.09.2025
1
5
6#pragma once
7
8#include "core/time/i_clock/i_clock.h"
9
15{
16namespace core
17{
18namespace time
19{
20
22
27class Clock : public IClock
28{
29 public:
30 Clock(const milliseconds& ms = milliseconds(0));
31 void SetNow(const milliseconds& ms) override;
32 void SetNow(const Timestamp& timestamp) override;
33 milliseconds GetNow() const override;
34 Timestamp GetNowAsTimestamp() const override;
35 void IncrementBy(const milliseconds& ms) override;
36
37 private:
39};
40
41} // namespace time
42} // namespace core
43} // namespace simulation_framework
This is the concrete Topic class that can be used for creation of a communication channel with given ...
Definition topic.h:38
Timestamp GetNowAsTimestamp() const override
Gets the current simulation time as a timestamp.
milliseconds GetNow() const override
Gets the current simulation time in milliseconds.
void IncrementBy(const milliseconds &ms) override
Increments the simulation time by a specified duration.
void SetNow(const milliseconds &ms) override
Sets the current simulation time.
void SetNow(const Timestamp &timestamp) override
Sets the current simulation time using a timestamp.
Interface for managing and manipulating simulation time.
Definition i_clock.h:39
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