Function mist_core::timing::ms_to_readable[][src]

pub fn ms_to_readable(ms: u128, round: bool) -> String
Expand description

Convert milliseconds into a readable time in the form HH:MM:SS.mmm

Optionally rounds to a possible 30hz value, i.e. 33ms, 67ms, etc.

Arguments

  • ms - the value to convert to string.
  • round - whether to round to 30hz or not