template<typename Rep, typename Period = fl::ratio<1>>
class fl::chrono::duration< Rep, Period >
Represents a time duration.
- Template Parameters
-
| Rep | The arithmetic type representing the number of ticks |
| Period | A fl::ratio representing the tick period (seconds per tick) |
This is a simplified version of std::chrono::duration that provides:
- Storage for a duration value
- Implicit conversion from compatible duration types
- count() method to extract the tick count
Example:
fl::u32
count = ms.count();
constexpr Rep count() const FL_NOEXCEPT
Get the tick count.
duration< fl::i64, fl::milli > milliseconds
Milliseconds - duration with period of 1/1,000 seconds.
Definition at line 36 of file chrono.h.