fn compute_expiry(ttl_as_seconds: u32) -> u64 {
        // Get current time in milliseconds.
        let now_as_milliseconds = get_time_ms(ClockType::Monotonic);

        // Compute expiry by adding ttl value converted to milliseconds
        // to current time (also in milliseconds). This addition is safe
        // because ttl is verified beforehand and can never be more than
        // 6h (21_600_000 ms).
        now_as_milliseconds.add(ttl_as_seconds as u64 * MILLISECONDS_PER_SECOND)
    }
/// Compute expiry time in seconds by adding the time to live provided
/// to the current time measured in milliseconds.
Compute expiry time in seconds by adding the time to live provided
to the current time measured in milliseconds.
Compute expiry time in seconds by adding the time to live provided to the current time measured in milliseconds .
fn compute_expiry(ttl_as_seconds: u32) -> u64 {
        // Get current time in milliseconds.
        let now_as_milliseconds = get_time_ms(ClockType::Monotonic);
        // Compute expiry by adding ttl value converted to milliseconds
        // to current time (also in milliseconds). This addition is safe
        // because ttl is verified beforehand and can never be more than
        // 6h (21_600_000 ms).
        now_as_milliseconds.add(ttl_as_seconds as u64 * MILLISECONDS_PER_SECOND)
    }
fn compute_expiry ( ttl_as_seconds : u32 ) -> u64 { // Get current time in milliseconds. let now_as_milliseconds = get_time_ms ( ClockType :: Monotonic ) ; // Compute expiry by adding ttl value converted to milliseconds // to current time (also in milliseconds). This addition is safe // because ttl is verified beforehand and can never be more than // 6h (21_600_000 ms). now_as_milliseconds . add ( ttl_as_seconds as u64 * MILLISECONDS_PER_SECOND ) }
Compute expiry time in seconds by adding the time to live provided
to the current time measured in milliseconds.
Compute expiry time in seconds by adding the time to live provided to the current time measured in milliseconds .
ttl_as_seconds
u32
ttl_as_seconds
u32