1

The chrono system header (/usr/include/c++/9/chrono) declares, but does not define, the static now() functions of its clocks. I also do not see an include that looks relevant. Where are these functions implemented?

4

1 回答 1

3

这些功能在哪里实现?

在您的 C++ 标准库实现中。

GNU 编译器随GNU C++ 库 - libstdc++一起提供。在 gcc 源代码树中,您可能会找到libstdc++-v3/chrono.cc文件,其中包含chrono::now()函数的实现。

于 2021-02-01T08:54:11.050 回答