Skip to main contentCrate timestamprs
Source - format_elapsed
- Formats
duration as HH:MM:SS.sss. - format_incremental
- format_now
- Returns the current local time formatted with
fmt. - prepend_timestamp
- Prepends
timestamp to line with a single space separator. - process_lines
- Reads lines from
reader, calls get_timestamp() for each one,
and writes the prefixed line to writer. - validate_format
- Validates a strftime format string by checking for any unrecognized specifiers.
Returns
Ok(()) if the format is valid, or Err(message) if not.