libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
webots_timebase.hpp
1#include "libxr_system.hpp"
2#include "timebase.hpp"
3
4extern struct timeval libxr_Webots_start_time;
5
6namespace LibXR
7{
13{
14 public:
20 MicrosecondTimestamp _get_microseconds() { return _libxr_webots_time_count * 1000; }
21
27 MillisecondTimestamp _get_milliseconds() { return _libxr_webots_time_count; }
28};
29} // namespace LibXR
表示微秒级时间戳的类。Class representing a timestamp in microseconds.
表示毫秒级时间戳的类。Class representing a timestamp in milliseconds.
时间基类,用于提供高精度时间戳。 Timebase class for providing high-precision timestamps.
Definition timebase.hpp:18
WebotsTimebase 类,用于获取 Webots 的时间基准。Provides a timebase for Webots.
MillisecondTimestamp _get_milliseconds()
获取当前时间戳(毫秒级)
MicrosecondTimestamp _get_microseconds()
获取当前时间戳(微秒级)。Returns the current timestamp in microseconds.
LibXR 命名空间