libxr
1.0
Want to be the best embedded framework
|
Public Member Functions | |
TimestampUS | _get_microseconds () override |
纯虚函数,获取当前时间的微秒级时间戳(由派生类实现)。 Pure virtual function for obtaining the current timestamp in microseconds (implemented by derived classes). | |
TimestampMS | _get_milliseconds () override |
纯虚函数,获取当前时间的毫秒级时间戳(由派生类实现)。 Pure virtual function for obtaining the current timestamp in milliseconds (implemented by derived classes). | |
![]() | |
Timebase (uint64_t max_valid_us=UINT64_MAX, uint32_t max_valid_ms=UINT32_MAX) | |
默认构造函数,初始化全局时间基指针。 Default constructor, initializing the global timebase pointer. | |
Static Public Attributes | |
static uint32_t | cnt_per_microsec_ |
![]() | |
static Timebase * | timebase = nullptr |
静态指针,用于存储全局时间基对象。 Static pointer storing the global timebase instance. | |
Additional Inherited Members | |
![]() | |
static TimestampUS | GetMicroseconds () |
获取当前时间的微秒级时间戳。 Gets the current timestamp in microseconds. | |
static TimestampMS | GetMilliseconds () |
获取当前时间的毫秒级时间戳。 Gets the current timestamp in milliseconds. | |
Definition at line 10 of file ch32_timebase.hpp.
|
inline |
Definition at line 13 of file ch32_timebase.hpp.
|
inlineoverridevirtual |
纯虚函数,获取当前时间的微秒级时间戳(由派生类实现)。 Pure virtual function for obtaining the current timestamp in microseconds (implemented by derived classes).
该函数需要在派生类中实现,以提供具体的时间获取机制。 This function must be implemented in derived classes to provide the actual time retrieval mechanism.
Implements LibXR::Timebase.
Definition at line 18 of file ch32_timebase.hpp.
|
inlineoverridevirtual |
纯虚函数,获取当前时间的毫秒级时间戳(由派生类实现)。 Pure virtual function for obtaining the current timestamp in milliseconds (implemented by derived classes).
该函数需要在派生类中实现,以提供具体的时间获取机制。 This function must be implemented in derived classes to provide the actual time retrieval mechanism.
Implements LibXR::Timebase.
Definition at line 24 of file ch32_timebase.hpp.
|
inlinestatic |
Definition at line 26 of file ch32_timebase.hpp.