libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
ch32_timebase.hpp
1#pragma once
2
3#include "libxr.hpp"
4
5#include DEF2STR(LIBXR_CH32_CONFIG_FILE)
6
7extern uint32_t SystemCoreClock;
8
9namespace LibXR
10{
11
12class CH32Timebase : public Timebase
13{
14 public:
16
18
20
21 static inline uint32_t cnt_per_microsec_;
22};
23
24} // namespace LibXR
MicrosecondTimestamp _get_microseconds() override
纯虚函数,获取当前时间的微秒级时间戳(由派生类实现)。 Pure virtual function for obtaining the current timestamp in microseconds...
MillisecondTimestamp _get_milliseconds() override
纯虚函数,获取当前时间的毫秒级时间戳(由派生类实现)。 Pure virtual function for obtaining the current timestamp in milliseconds...
表示微秒级时间戳的类。Class representing a timestamp in microseconds.
表示毫秒级时间戳的类。Class representing a timestamp in milliseconds.
时间基类,用于提供高精度时间戳。 Timebase class for providing high-precision timestamps.
Definition timebase.hpp:18
LibXR 命名空间
Definition ch32_gpio.hpp:9