5extern struct timeval libxr_linux_start_time;
25 gettimeofday(&tv,
nullptr);
26 return ((tv.tv_sec - libxr_linux_start_time.tv_sec) * 1000000 +
27 (tv.tv_usec - libxr_linux_start_time.tv_usec)) %
39 gettimeofday(&tv,
nullptr);
40 return ((tv.tv_sec - libxr_linux_start_time.tv_sec) * 1000 +
41 (tv.tv_usec - libxr_linux_start_time.tv_usec) / 1000) %
LinuxTimebase 类,用于获取 Linux 系统的时间基准。Provides a timebase for Linux systems.
TimestampMS _get_milliseconds()
获取当前时间戳(毫秒级)
TimestampUS _get_microseconds()
获取当前时间戳(微秒级)。Returns the current timestamp in microseconds.
时间基类,用于提供高精度时间戳。 Timebase class for providing high-precision timestamps.
表示毫秒级时间戳的类。Class representing a timestamp in milliseconds.
表示微秒级时间戳的类。Class representing a timestamp in microseconds.
LibXR Color Control Library / LibXR终端颜色控制库