|
libxr
Embedded C++ framework for bare-metal, RTOS and Linux
|
毫秒时间戳 / Millisecond timestamp More...
#include <libxr_time.hpp>
Classes | |
| class | Duration |
| 毫秒时长 / Duration in milliseconds More... | |
Public Member Functions | |
| MillisecondTimestamp ()=default | |
| 创建零值毫秒时间戳 / Construct a zero millisecond timestamp | |
| MillisecondTimestamp (uint32_t millisecond) | |
| 从毫秒计数构造时间戳 / Construct a timestamp from millisecond ticks | |
| operator uint32_t () const | |
| 转换为毫秒计数值 / Convert to the raw millisecond tick count | |
| Duration | operator- (const MillisecondTimestamp &old_timestamp) const |
| 计算时间差,支持时间基准回绕 / Compute elapsed time with timebase wraparound | |
毫秒时间戳 / Millisecond timestamp
Definition at line 162 of file libxr_time.hpp.
|
inline |
从毫秒计数构造时间戳 / Construct a timestamp from millisecond ticks
| millisecond | 毫秒计数值 / Millisecond tick count |
Definition at line 174 of file libxr_time.hpp.
|
inline |
转换为毫秒计数值 / Convert to the raw millisecond tick count
Definition at line 180 of file libxr_time.hpp.
|
inlinenodiscard |
计算时间差,支持时间基准回绕 / Compute elapsed time with timebase wraparound
| old_timestamp | 旧时间戳 / Older timestamp |
Definition at line 242 of file libxr_time.hpp.