|
libxr
1.0
Want to be the best embedded framework
|
微秒时长 / Duration in microseconds More...
#include <libxr_time.hpp>
Public Member Functions | |
| Duration (uint64_t diff) | |
| 从微秒差值构造时长 / Construct a duration from a microsecond delta | |
| operator uint64_t () const | |
| 转换为微秒差值 / Convert to the raw microsecond delta | |
| double | ToSecond () const |
| 转换为秒 / Convert the duration to seconds | |
| float | ToSecondf () const |
| 转换为单精度秒 / Convert the duration to seconds in single precision | |
| uint64_t | ToMicrosecond () const |
| 转换为微秒 / Convert the duration to microseconds | |
| uint32_t | ToMillisecond () const |
| 转换为毫秒 / Convert the duration to milliseconds | |
Private Attributes | |
| uint64_t | diff_ = 0 |
微秒时长 / Duration in microseconds
Definition at line 69 of file libxr_time.hpp.
|
inline |
从微秒差值构造时长 / Construct a duration from a microsecond delta
| diff | 微秒差值 / Microsecond delta |
Definition at line 76 of file libxr_time.hpp.
|
inline |
转换为微秒差值 / Convert to the raw microsecond delta
Definition at line 82 of file libxr_time.hpp.
|
inlinenodiscard |
转换为微秒 / Convert the duration to microseconds
Definition at line 106 of file libxr_time.hpp.
|
inlinenodiscard |
转换为毫秒 / Convert the duration to milliseconds
Definition at line 112 of file libxr_time.hpp.
|
inlinenodiscard |
转换为秒 / Convert the duration to seconds
Definition at line 88 of file libxr_time.hpp.
|
inlinenodiscard |
转换为单精度秒 / Convert the duration to seconds in single precision
Definition at line 97 of file libxr_time.hpp.
|
private |
Definition at line 115 of file libxr_time.hpp.