Function unit_to_encode
Source pub fn unit_to_encode(unit: &Unit, duration: CFDuration) -> f64
Expand description
Converts a unit of time to its corresponding encoded value.
§Arguments
unit - The unit of time to encode.
duration - The duration to encode.
§Returns
The encoded value of the unit of time.