    

 ## On this page

  

 

 # File clock.h

 Last update: 22.04.2026 

![](https://img.shields.io/badge/language-C%2B%2B-blue "C++")

**Location**: `core/time/clock/clock.h`

## Classes

- [simulation\_framework::core::time::Clock](classsimulation__framework_1_1core_1_1time_1_1Clock.md#classsimulation__framework_1_1core_1_1time_1_1Clock)

## Namespaces

- [simulation\_framework](namespacesimulation__framework.md#namespacesimulation__framework)
- [simulation\_framework::core](namespacesimulation__framework_1_1core.md#namespacesimulation__framework_1_1core)
- [simulation\_framework::core::time](namespacesimulation__framework_1_1core_1_1time.md#namespacesimulation__framework_1_1core_1_1time)

## Includes

- core/export/simfwk\_core\_export.h
- [core/time/i\_clock/i\_clock.h](i__clock_8h.md#i__clock_8h)

## Source

```cpp


#ifndef SIMFWK_CORE_TIME_CLOCK_CLOCK_H
#define SIMFWK_CORE_TIME_CLOCK_CLOCK_H

#include "core/export/simfwk_core_export.h"
#include "core/time/i_clock/i_clock.h"

namespace simulation_framework
{
namespace core
{
namespace time
{


class SIMFWK_CORE_API Clock : public IClock
{
  public:
    Clock(const milliseconds& ms = milliseconds(0));
    void SetNow(const milliseconds& ms) override;
    void SetNow(const Timestamp& timestamp) override;
    milliseconds GetNow() const override;
    Timestamp GetNowAsTimestamp() const override;
    void IncrementBy(const milliseconds& ms) override;

  private:
    timepoint<milliseconds> ms_;
};

}  // namespace time
}  // namespace core
}  // namespace simulation_framework

#endif  // SIMFWK_CORE_TIME_CLOCK_CLOCK_H

```