|
libxr
1.0
Want to be the best embedded framework
|
毫秒时长 / Duration in milliseconds More...
#include <libxr_time.hpp>
Public Member Functions | |
| Duration (uint32_t diff) | |
| 从毫秒差值构造时长 / Construct a duration from a millisecond delta | |
| operator uint32_t () const | |
| 转换为毫秒差值 / Convert to the raw millisecond delta | |
| double | ToSecond () const |
| 转换为秒 / Convert the duration to seconds | |
| float | ToSecondf () const |
| 转换为单精度秒 / Convert the duration to seconds in single precision | |
| uint32_t | ToMillisecond () const |
| 转换为毫秒 / Convert the duration to milliseconds | |
| uint64_t | ToMicrosecond () const |
| 转换为微秒 / Convert the duration to microseconds | |
Private Attributes | |
| uint32_t | diff_ = 0 |
毫秒时长 / Duration in milliseconds
Definition at line 185 of file libxr_time.hpp.
|
inline |
从毫秒差值构造时长 / Construct a duration from a millisecond delta
| diff | 毫秒差值 / Millisecond delta |
Definition at line 192 of file libxr_time.hpp.
|
inline |
转换为毫秒差值 / Convert to the raw millisecond delta
Definition at line 198 of file libxr_time.hpp.
|
inlinenodiscard |
转换为微秒 / Convert the duration to microseconds
Definition at line 228 of file libxr_time.hpp.
|
inlinenodiscard |
转换为毫秒 / Convert the duration to milliseconds
Definition at line 222 of file libxr_time.hpp.
|
inlinenodiscard |
转换为秒 / Convert the duration to seconds
Definition at line 204 of file libxr_time.hpp.
|
inlinenodiscard |
转换为单精度秒 / Convert the duration to seconds in single precision
Definition at line 213 of file libxr_time.hpp.
|
private |
Definition at line 234 of file libxr_time.hpp.