A reading of Clock and of the wall clock, taken together.
More...
#include <observation.hpp>
Public Member Functions | |
| std::chrono::system_clock::time_point | to_wall_clock (TimePoint time) const noexcept |
Convert a point on Clock to wall-clock time. More... | |
Static Public Member Functions | |
| static ClockAnchor | now () noexcept |
| Read both clocks, one immediately after the other. More... | |
Public Attributes | |
| TimePoint | steady {} |
The reading of Clock. | |
| std::chrono::system_clock::time_point | wall {} |
| The reading of the wall clock, taken at the same moment. | |
A reading of Clock and of the wall clock, taken together.
Clock cannot be compared with anything outside this process, so an anchor is what relates an observation to a log line, to another process, or to a profiler trace.
Definition at line 39 of file observation.hpp.
|
staticnoexcept |
Read both clocks, one immediately after the other.
|
inlinenoexcept |
Convert a point on Clock to wall-clock time.
| time | The point to convert. |
Definition at line 66 of file observation.hpp.