    

 ## On this page

  

 

 # File timestamp.h

 Last update: 22.04.2026 

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

**Location**: `core/time/i_clock/timestamp.h`

## Classes

- [simulation\_framework::core::time::Timestamp](structsimulation__framework_1_1core_1_1time_1_1Timestamp.md#structsimulation__framework_1_1core_1_1time_1_1Timestamp)

## 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
- 
- 
- 
- 

## Included by

- [i\_activity.h](i__activity_8h.md#i__activity_8h)
- [i\_clock.h](i__clock_8h.md#i__clock_8h)
- [i\_scheduler\_client.h](i__scheduler__client_8h.md#i__scheduler__client_8h)

## Source

```cpp


#ifndef SIMFWK_CORE_TIME_ICLOCK_TIMESTAMP_H
#define SIMFWK_CORE_TIME_ICLOCK_TIMESTAMP_H

#include "core/export/simfwk_core_export.h"
#include <cstdint>
#include <iomanip>
#include <iostream>
#include <string>
namespace simulation_framework
{
namespace core
{
namespace time
{

struct SIMFWK_CORE_API Timestamp
{
    uint32_t seconds;
    uint32_t nanoseconds;
    std::string DebugString() const
    {
        return "Simulation timestamp: " + std::to_string(seconds) + " second and " + std::to_string(nanoseconds) +
               " nanos ";
    }
};

inline bool operator==(const Timestamp& lhs, const Timestamp& rhs)
{
    return (lhs.seconds == rhs.seconds) && (lhs.nanoseconds == rhs.nanoseconds);
}

inline std::ostream& operator<<(std::ostream& os, const Timestamp& timestamp)
{
    double formatted_time = timestamp.seconds + timestamp.nanoseconds * 1e-9;
    os << std::right << std::setw(10) << std::fixed << std::setprecision(3) << formatted_time << " s";
    return os;
}

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

#endif  // SIMFWK_CORE_TIME_ICLOCK_TIMESTAMP_H

```