libcamera v0.3.0
Supporting cameras in Linux since 2019
|
Helper class from std::chrono::duration that represents a time duration in nanoseconds with double precision. More...
Public Member Functions | |
template<typename Rep > | |
constexpr | Duration (const Rep &r) |
Construct a Duration with r ticks. | |
template<typename Rep , typename Period > | |
constexpr | Duration (const std::chrono::duration< Rep, Period > &d) |
Construct a Duration by converting an arbitrary std::chrono::duration. | |
template<typename Period > | |
double | get () const |
Retrieve the tick count, converted to the timebase provided by the template argument Period of type std::ratio. | |
constexpr | operator bool () const |
Boolean operator to test if a Duration holds a non-zero time value. | |
Helper class from std::chrono::duration that represents a time duration in nanoseconds with double precision.
|
inline |
Retrieve the tick count, converted to the timebase provided by the template argument Period of type std::ratio.
A typical usage example is given below:
|
inlineexplicitconstexpr |