cubos::core::tel::Logger::Timestamp struct

A timestamp used to identify when a logging message was written.

Public static functions

static auto now() -> Timestamp
Returns a timestamp with the current time.

Public functions

auto string() const -> std::string
Returns a string representation for the timestamp, containing hours, minutes, seconds and milliseconds.

Public variables

int64_t timestamp
Milliseconds since the UNIX epoch.

Function documentation

static Timestamp cubos::core::tel::Logger::Timestamp::now()

Returns a timestamp with the current time.

Returns Timestamp.

std::string cubos::core::tel::Logger::Timestamp::string() const

Returns a string representation for the timestamp, containing hours, minutes, seconds and milliseconds.

Returns String representation.