|
libxr
1.0
Want to be the best embedded framework
|
WebAsmTimebase 类,用于获取 WebAssembly 系统的时间基准。 More...
#include <webasm_timebase.hpp>
Public Member Functions | |
| MicrosecondTimestamp | _get_microseconds () override |
| 获取当前时间戳(微秒级) | |
| MillisecondTimestamp | _get_milliseconds () override |
| 获取当前时间戳(毫秒级) | |
Public Member Functions inherited from LibXR::Timebase | |
| Timebase (uint64_t max_valid_us=UINT64_MAX, uint32_t max_valid_ms=UINT32_MAX) | |
| 默认构造函数,初始化全局时间基指针。 Default constructor, initializing the global timebase pointer. | |
Private Attributes | |
| std::chrono::system_clock::time_point | start_time_ |
Additional Inherited Members | |
Static Public Member Functions inherited from LibXR::Timebase | |
| static MicrosecondTimestamp | GetMicroseconds () |
| 获取当前时间的微秒级时间戳。 Gets the current timestamp in microseconds. | |
| static MillisecondTimestamp | GetMilliseconds () |
| 获取当前时间的毫秒级时间戳。 Gets the current timestamp in milliseconds. | |
Static Public Attributes inherited from LibXR::Timebase | |
| static Timebase * | timebase = nullptr |
| 静态指针,用于存储全局时间基对象。 Static pointer storing the global timebase instance. | |
WebAsmTimebase 类,用于获取 WebAssembly 系统的时间基准。
Definition at line 14 of file webasm_timebase.hpp.
|
inline |
Definition at line 17 of file webasm_timebase.hpp.
|
inlineoverridevirtual |
获取当前时间戳(微秒级)
Implements LibXR::Timebase.
Definition at line 27 of file webasm_timebase.hpp.
|
inlineoverridevirtual |
获取当前时间戳(毫秒级)
Implements LibXR::Timebase.
Definition at line 39 of file webasm_timebase.hpp.
|
private |
Definition at line 48 of file webasm_timebase.hpp.