6#include "soc/soc_caps.h"
7#if SOC_SYSTIMER_SUPPORTED
8#include "hal/systimer_hal.h"
10#include "timebase.hpp"
44#if SOC_SYSTIMER_SUPPORTED
45 systimer_hal_context_t systimer_hal_ = {};
46 bool systimer_ready_ =
false;
ESP32 时间基准实现 / ESP32 timebase implementation.
ESP32Timebase()
构造函数 / Constructor
MicrosecondTimestamp _get_microseconds() override
获取当前微秒计数 / Get current timestamp in microseconds
MillisecondTimestamp _get_milliseconds() override
获取当前毫秒计数 / Get current timestamp in milliseconds
表示微秒级时间戳的类。Class representing a timestamp in microseconds.
表示毫秒级时间戳的类。Class representing a timestamp in milliseconds.
时间基类,用于提供高精度时间戳。 Timebase class for providing high-precision timestamps.