Function mosaic::elapsed_ns#
Defined in File timestamp.hpp
Function Documentation#
-
inline int64_t mosaic::elapsed_ns() noexcept#
Nanoseconds elapsed since the first call to any elapsed_* function (effectively since application start).
Use this for durations and inter-event intervals — in particular for stamping video frames and trigger events, which must be aligned to each other. This clock never jumps backwards.
- Returns:
Nanoseconds elapsed (always non-negative, starts near 0).