libxr 1.0
Want to be the best embedded framework
|
基于 esp_timer 的时间基准实现(微秒与毫秒) Timebase implementation using esp_timer (microseconds and milliseconds) More...
#include <esp_timebase.hpp>
Public Member Functions | |
ESP32Timebase () | |
构造函数 | |
TimestampUS | _get_microseconds () override |
获取当前时间(微秒) | |
TimestampMS | _get_milliseconds () override |
获取当前时间(毫秒) | |
![]() | |
Timebase (uint64_t max_valid_us=UINT64_MAX, uint32_t max_valid_ms=UINT32_MAX) | |
默认构造函数,初始化全局时间基指针。 Default constructor, initializing the global timebase pointer. | |
Additional Inherited Members | |
![]() | |
static TimestampUS | GetMicroseconds () |
获取当前时间的微秒级时间戳。 Gets the current timestamp in microseconds. | |
static TimestampMS | GetMilliseconds () |
获取当前时间的毫秒级时间戳。 Gets the current timestamp in milliseconds. | |
![]() | |
static Timebase * | timebase = nullptr |
静态指针,用于存储全局时间基对象。 Static pointer storing the global timebase instance. | |
基于 esp_timer 的时间基准实现(微秒与毫秒) Timebase implementation using esp_timer (microseconds and milliseconds)
Definition at line 14 of file esp_timebase.hpp.
|
inline |
构造函数
Definition at line 20 of file esp_timebase.hpp.
|
inlineoverridevirtual |
获取当前时间(微秒)
Implements LibXR::Timebase.
Definition at line 29 of file esp_timebase.hpp.
|
inlineoverridevirtual |
获取当前时间(毫秒)
Implements LibXR::Timebase.
Definition at line 38 of file esp_timebase.hpp.