Skip to main content

Module time

Module time 

Source
Expand description

Exposes the public time module. Human-friendly scan timing parsing and formatting.

Functions§

format_milliseconds
Format milliseconds to a human-readable string. This will of course give an approximation, but will be readable. Performs the public format_milliseconds operation.
parse_to_milliseconds
Parse a given time string into milliseconds. This can be used to convert a string such as ‘20ms’, ‘10s’ or ‘1h’ into adequate milliseconds. Without suffix, the default behavior is to parse into milliseconds. Performs the public parse_to_milliseconds operation.