20 start_time_ = std::chrono::system_clock::now();
29 auto now = std::chrono::system_clock::now();
31 std::chrono::duration_cast<std::chrono::microseconds>(
now - start_time_).count();
41 auto now = std::chrono::system_clock::now();
43 std::chrono::duration_cast<std::chrono::milliseconds>(
now - start_time_).count();
48 std::chrono::system_clock::time_point start_time_;
时间基类,用于提供高精度时间戳。 Timebase class for providing high-precision timestamps.
表示毫秒级时间戳的类。Class representing a timestamp in milliseconds.
表示微秒级时间戳的类。Class representing a timestamp in microseconds.
WebAsmTimebase 类,用于获取 WebAssembly 系统的时间基准。
TimestampUS _get_microseconds() override
获取当前时间戳(微秒级)
TimestampMS _get_milliseconds() override
获取当前时间戳(毫秒级)
LibXR Color Control Library / LibXR终端颜色控制库
constexpr auto min(T1 a, T2 b) -> typename std::common_type< T1, T2 >::type
计算两个数的最小值