C++ Logo

std-proposals

Advanced search

Re: [std-proposals] constexpr support for std::chrono::system_clock

From: Thiago Macieira <thiago_at_[hidden]>
Date: Mon, 10 Mar 2025 09:36:47 -0700
On Monday, 10 March 2025 03:23:06 Pacific Daylight Time Tiago Freire via Std-
Proposals wrote:
> And if you want the compile-time, I generally see this feature in
> build/version information, you will probably want a single version of it,
> (such that your about window doesn’t show a different compile time from
> your properties).

And I find that the current Git commit is a far more useful piece of
information than the time the tool was compiled. Recompiling a 10-year-old
tool today does not make it any more modern than it was yesterday.

If I want to know "what build this is", I want the information from the
linker. On ELF systems, the linker includes a Build-ID in an ELF note and that
portion of the binary is loaded into memory, so you can look for it too.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Platform & System Engineering

Received on 2025-03-10 16:36:51