libxr
1.0
Want to be the best embedded framework
|
表示毫秒级时间戳的类。Class representing a timestamp in milliseconds. More...
#include <libxr_time.hpp>
Data Structures | |
class | Duration |
表示毫秒级时间差的类。Class representing a time difference in milliseconds. More... | |
Public Member Functions | |
MillisecondTimestamp (uint32_t millisecond) | |
operator uint32_t () const | |
Duration | operator- (const MillisecondTimestamp &old_millisecond) const |
计算两个时间戳之间的时间差。 Computes the time difference between two timestamps. | |
Private Attributes | |
uint32_t | millisecond_ |
以毫秒存储的时间戳。Timestamp stored in milliseconds. | |
表示毫秒级时间戳的类。Class representing a timestamp in milliseconds.
Definition at line 112 of file libxr_time.hpp.
MillisecondTimestamp::MillisecondTimestamp | ( | ) |
Definition at line 69 of file libxr_time.cpp.
MillisecondTimestamp::MillisecondTimestamp | ( | uint32_t | millisecond | ) |
Definition at line 71 of file libxr_time.cpp.
MillisecondTimestamp::operator uint32_t | ( | ) | const |
Definition at line 76 of file libxr_time.cpp.
|
nodiscard |
计算两个时间戳之间的时间差。 Computes the time difference between two timestamps.
old_millisecond | 旧的时间戳。The older timestamp. |
Definition at line 102 of file libxr_time.cpp.
|
private |
以毫秒存储的时间戳。Timestamp stored in milliseconds.
Definition at line 176 of file libxr_time.hpp.