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_;
表示微秒级时间戳的类。Class representing a timestamp in microseconds.
表示毫秒级时间戳的类。Class representing a timestamp in milliseconds.
时间基类,用于提供高精度时间戳。 Timebase class for providing high-precision timestamps.
WebAsmTimebase 类,用于获取 WebAssembly 系统的时间基准。
MillisecondTimestamp _get_milliseconds() override
获取当前时间戳(毫秒级)
MicrosecondTimestamp _get_microseconds() override
获取当前时间戳(微秒级)