libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
webots_timebase.hpp
1#pragma once
2
3#include "libxr_system.hpp"
4#include "timebase.hpp"
5
6extern struct timeval libxr_Webots_start_time;
7
8namespace LibXR
9{
15{
16 public:
22 MicrosecondTimestamp _get_microseconds() { return _libxr_webots_time_count * 1000; }
23
29 MillisecondTimestamp _get_milliseconds() { return _libxr_webots_time_count; }
30};
31} // 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
Webots 时间基准实现 / Webots timebase implementation.
MillisecondTimestamp _get_milliseconds()
获取当前毫秒计数 / Get current timestamp in milliseconds
MicrosecondTimestamp _get_microseconds()
获取当前微秒计数 / Get current timestamp in microseconds
LibXR 命名空间
Definition ch32_can.hpp:14