> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# i_clock.h

```cpp theme={null}
 #pragma once

 #include "core/time/i_clock/timestamp.h"
 #include <chrono>
 #include <memory>

 namespace simulation_framework
 {
 namespace core
 {
 namespace time
 {

 template <class Duration>
 using timepoint = std::chrono::time_point<std::chrono::system_clock, Duration>;
 using milliseconds = std::chrono::milliseconds;

 class IClock
 {
   public:
     virtual ~IClock() = default;

     virtual void SetNow(const milliseconds& ms) = 0;

     virtual void SetNow(const Timestamp& timestamp) = 0;

     virtual milliseconds GetNow() const = 0;

     virtual Timestamp GetNowAsTimestamp() const = 0;

     virtual void IncrementBy(const milliseconds& ms) = 0;
 };

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